redis数据库查看内存占用
#redis-cli 连接上redis
info memory
-human 后缀表示可读方式
used_memory:277168272
used_memory_human:264.33M #已使用内存
used_memory_rss:313630720
used_memory_rss_human:299.10M #redis占用内存(含主体)
used_memory_peak:3001710576
used_memory_peak_human:2.80G
used_memory_peak_perc:9.23%
used_memory_overhead:2209632
used_memory_startup:810080
used_memory_dataset:274958640
used_memory_dataset_perc:99.49%
allocator_allocated:277183576
allocator_active:291651584
allocator_resident:318320640
total_system_memory:16239394816
total_system_memory_human:15.12G
used_memory_lua:37888
used_memory_lua_human:37.00K
used_memory_scripts:0
used_memory_scripts_human:0B
number_of_cached_scripts:0
maxmemory:3000000000
maxmemory_human:2.79G #最大内存大小
maxmemory_policy:noeviction
allocator_frag_ratio:1.05
allocator_frag_bytes:14468008
allocator_rss_ratio:1.09
allocator_rss_bytes:26669056
rss_overhead_ratio:0.99
rss_overhead_bytes:-4689920
mem_fragmentation_ratio:1.13
mem_fragmentation_bytes:36503440
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_clients_slaves:0
mem_clients_normal:1087096
mem_aof_buffer:0
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0
lazyfreed_objects:0