查看redis内存使用情况

查看redis内存使用情况,在reids客户端命令行使用:

info memory

首先连接redis客户端:

./redis-cli -h 127.0.0.1 -p 6379

查看内存情况:

127.0.0.1:6379> info memory
# Memory
used_memory:102045712    #redis使用的总内存大小,byte为单位
used_memory_human:97.32M
used_memory_rss:140541952
used_memory_rss_human:134.03M
used_memory_peak:4314221664
used_memory_peak_human:4.02G
used_memory_peak_perc:2.37%
used_memory_overhead:941530
used_memory_startup:786600
used_memory_dataset:101104182
used_memory_dataset_perc:99.85%
total_system_memory:16717512704
total_system_memory_human:15.57G
used_memory_lua:37888
used_memory_lua_human:37.00K
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
mem_fragmentation_ratio:1.38
mem_allocator:jemalloc-4.0.3
active_defrag_running:0
lazyfree_pending_objects:0

你可能感兴趣的:(Redis)