当前位置:网站首页>记录一次Redis大Key的排查
记录一次Redis大Key的排查
2022-06-26 20:32:00 【壹氿】
工具
使用的是GitHub的开源脚本:https://github.com/weiyanwei412/rdb_bigkeys
使用
- 下载go语言安装包
wget https://go.dev/dl/go1.17.5.linux-amd64.tar.gz
- 解压安装包
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.17.5.linux-amd64.tar.gz
- 导入环境变量
export PATH=$PATH:/usr/local/go/bin
- 验证go环境是否配置成功
go version
- 下载脚本源码
git clone [email protected]:weiyanwei412/rdb_bigkeys.git
- 进入目录初始化go语言项目
- go mod init redisBigKeys
- 拉取相关依赖
- go get
- 构建可执行脚本
go build
,执行后生成可执行化文件:rdbBigKeys
- 分析Redis RDB文件
./rdbBigKeys --bytes 1024 --file bigkeys.csv --sep 0 --sorted --threads 4 /var/lib/redis/6379/dump.rdb
- 生成CSV文件
边栏推荐
- Tiktok practice ~ sharing module ~ generate short video QR code
- WebView load pdf
- 开户可以在网上开么?能安全吗?
- 飞天+CIPU体为元宇宙带来更大想象空间
- 【最详细】最新最全Redis面试大全(70道)
- Fixed length memory pool
- [Bayesian classification 2] naive Bayesian classifier
- C: Reverse linked list
- GEE:计算image区域内像素最大最小值
- [Bayesian classification 4] Bayesian network
猜你喜欢
How to install mysql8.0 database under Windows system? (Graphic tutorial)
MySQL - table creation and management
Tiktok practice ~ homepage video ~ pull-down refresh
MySQL中存储过程的详细详解
Review of watermelon book (VII): Bayesian classifier (manual push + code demo)
抖音实战~分享模块~复制短视频链接
vue中缓存组件keep-alive
Arduino UNO + DS1302利用31字节静态RAM存储数据并串口打印
Tiktok practice ~ sharing module ~ generate short video QR code
[Bayesian classification 2] naive Bayesian classifier
随机推荐
【最详细】最新最全Redis面试大全(70道)
抖音实战~分享模块~短视频下载(保存到相册)
30. concatenate substrings of all words
leetcode刷题:字符串02( 反转字符串II)
云计算技术的发展与芯片处理器的关系
515. find the maximum value in each tree row
c语言简单的登录
0 basic C language (0)
[recommended collection] these 8 common missing value filling skills must be mastered
C language 99 multiplication table
Unity——Mathf. Similarities and differences between atan and atan2
Disruptor local thread queue_ Use transprocessor processor and workpool to compare consumption - Notes on inter thread communication 005
0 basic C language (1)
Distributed ID generation system
Tiktok practice ~ search page ~ video details
慕课8、服务容错-Sentinel
2022/02/14 line generation
Mr. Sun's version of JDBC (21:34:25, June 12, 2022)
C language simple login
C exercise. Class list plus records, display records and clear records