Use redis data reveal (RDR) to view the memory space occupied by the key in redis

Time:2021-3-3

The response speed of the project is relatively high, so redis cache is used for all the projects, which also leads to cache failure. It is necessary to analyze the memory usage of various keys for optimization.

Although redisclient can easily operate redis, it can’t view the memory occupied by the corresponding key, and can’t make statistical analysis on the memory occupied by the key. I have a brief understanding of the open-source middleware on the market that can view the occupancy of keys in redis, and finally decided to use redis data review (RDR) to view the occupancy of keys in the system (RDR is a visualization middleware developed by snowball company with reference to the redis RDB tool open-source project, and it is said that its performance is slightly higher than that of redis RDB tool)

1. Download the corresponding installation package from GitHub,Xueqiu / RDR download address
github下载对应版本的安装包2. Download good RDR software and RDB data files下载好的rdr软件及rdb数据文件3. Input the operation command

.\rdr-windows.exe show -p 924 dump.rdb
.\rdr- windows.exe  Show - P port number persistent data file.rdb

命令行运行结果4. Visit the URL to view the report output本地运行成功后分析页面

Recommended Today

Practice analysis of rust built-in trait: partialeq and EQ

Abstract:Rust uses traits in many places, from simple operator overloading to subtle features like send and sync. This article is shared from Huawei cloud community《Analysis of rust built-in trait: partialeq and EQ》Author: debugzhang Rust uses traits in many places, from simple operator overloading to subtle features like send and sync. Some traits can be automatically […]