Redis之記憶體占用分析工具RDR

2022-09-18 13:54:13 字數 922 閱讀 8249

場景:最近redis爆滿, 但是不清楚具體哪些鍵占用的空間較多, 是否有設定過期時間等情況

windows:/releases/download/v0.0.1/rdr-windows.exe

新增執行許可權:

$ chmod a+x ./rdr*
2.用法

./rdr show -p 8000 *.rdb

-p: 指定開啟的web埠號

最後指定rdb,redis快照的具體路徑

name:

rdr -a tool to parse redis rdbfile

usage:

rdr [

global

options] command [command options] [arguments...]

version:

v0.0.1commands:

dump dump statistical information of rdbfile to stdout

show show statistical information of rdbfile by webpage

keys

get all keys from

rdbfile

help, h shows a list of commands or help

forone command

global options:

--help, -h show help

--version, -v print the version

Redis記憶體占用過大如何分析?

前幾天突然收到redis記憶體超標的報警,趕緊看了下監控,看到這個曲線吸了一口涼氣,這增長速度也太快了,需要快速定位出問題,不然就要爆了。這個redis由多個應用共享,我們就有2個問題需要解決 首先要找出是哪個應用在占用redis記憶體 其次是到底是某個key值太大,還是數量太多引起的?為解答這2個...

Redis系列之記憶體碎片

在使用cachecloud時看到乙個碎片率的監控指標,於是有了此文。記憶體碎片率,memory fragmentation ratio,簡稱mfr,是redis的乙個效能指標,其計算公式 mfr used memory rss used memory 無論是通過redis cli還是rdm工具,輸入...

Nginx 學習筆記(四)之 記憶體占用過高分析

一 記憶體占用檢視情況 執行如下命令確定 nginx 主程序 檢視主程序 ps aux grep nginx 檢視主程序下所有子程序占用記憶體情況,以此來進行統計 ps ppid u 1 查詢主程序看 命令ps aux grep nginx 從上圖可以看到 master process 有好幾個,這...