工具git地址为https://github.com/sripathikrishnan/redis-rdb-tools
解析rdf文件
内存排序
很多功能,具体查看官文吧!
其他工具参考:
https://mp.weixin.qq.com/s/02NDtPI_CyDLDxAnf_OLdg
https://www.alibabacloud.com/help/zh/faq-detail/50037.htm --阿里云 rdb+sqllite
解析rdf文件
-
> rdb --command json /var/redis/6379/dump.rdb
-
-
[{
-
"user003":{"fname":"Ron","sname":"Bumquist"},
-
"lizards":["Bush anole","Jackson's chameleon","Komodo dragon","Ground agama","Bearded dragon"],
-
"user001":{"fname":"Raoul","sname":"Duke"},
-
"user002":{"fname":"Gonzo","sname":"Dr"},
-
"user_list":["user003","user002","user001"]},{
-
"baloon":{"helium":"birthdays","medical":"angioplasty","weather":"meteorology"},
-
"armadillo":["chacoan naked-tailed","giant","Andean hairy","nine-banded","pink fairy"],
- "aroma":{"pungent":"vinegar","putrid":"rotten eggs","floral":"roses"}}]
内存排序
-
> rdb -c memory /var/redis/6379/dump.rdb --bytes 128 -f memory.csv
-
> cat memory.csv
-
-
database,type,key,size_in_bytes,encoding,num_elements,len_largest_element
-
0,list,lizards,241,quicklist,5,19
-
0,list,user_list,190,quicklist,3,7
-
2,hash,baloon,138,ziplist,3,11
-
2,list,armadillo,231,quicklist,5,20
- 2,hash,aroma,129,ziplist,3,11
很多功能,具体查看官文吧!
其他工具参考:
https://mp.weixin.qq.com/s/02NDtPI_CyDLDxAnf_OLdg
https://www.alibabacloud.com/help/zh/faq-detail/50037.htm --阿里云 rdb+sqllite
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29096438/viewspace-2154076/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29096438/viewspace-2154076/
本文介绍了一款名为redis-rdb-tools的工具,该工具可以从GitHub获取(https://github.com/sripathikrishnan/redis-rdb-tools)。通过使用rdb-commandjson命令,可以解析Redis RDB文件并导出JSON格式的数据;而rdb-cmemory命令则能够帮助分析RDB文件的内容,包括内存占用等关键信息。
1285

被折叠的 条评论
为什么被折叠?



