【Redis】常用命令

查看内存

# redis-cli
127.0.0.1:6379> auth 123456
127.0.0.1:6379> info memory

结果

# Memory
used_memory:42030440
used_memory_human:40.08M
used_memory_rss:46362624
used_memory_rss_human:44.21M
used_memory_peak:64010632
used_memory_peak_human:61.05M
used_memory_peak_perc:65.66%
used_memory_overhead:2108332
used_memory_startup:803008
used_memory_dataset:39922108
used_memory_dataset_perc:96.83%
allocator_allocated:42146632
allocator_active:43757568
allocator_resident:47595520
total_system_memory:67326414848
total_system_memory_human:62.70G
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:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:1.04
allocator_frag_bytes:1610936
allocator_rss_ratio:1.09
allocator_rss_bytes:3837952
rss_overhead_ratio:0.97
rss_overhead_bytes:-1232896
mem_fragmentation_ratio:1.10
mem_fragmentation_bytes:4373192
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_clients_slaves:0
mem_clients_normal:1053132
mem_aof_buffer:0
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0

 

posted @ 2022-10-10 14:05  翠微  阅读(25)  评论(0编辑  收藏  举报