使用info命令查看链接数:


127.0.0.1:6379> info

# Clients
connected_clients:1
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0

# Memory
used_memory:7767543488
used_memory_human:7.23G
used_memory_rss:8330784768
used_memory_rss_human:7.76G
used_memory_peak:10680449296
used_memory_peak_human:9.95G
used_memory_peak_perc:72.73%
used_memory_overhead:3533621726
used_memory_startup:765512
used_memory_dataset:4233921762
used_memory_dataset_perc:54.51%
total_system_memory:135084498944
total_system_memory_human:125.81G
used_memory_lua:37888
used_memory_lua_human:37.00K
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
mem_fragmentation_ratio:1.07
mem_allocator:jemalloc-4.0.3
active_defrag_running:0
lazyfree_pending_objects:0


connected_clients:1 表示连接数为1