在最近的一次上线中,由于web系统逻辑出现问题,导致redis集群中某个节点内存使用量飙升。
赶紧排查……
发现原因是某个key的value值达到了1.5g,这时info Memory信息如下:
# Memory
used_memory:1793327880
used_memory_human:1.67G
used_memory_rss:1319301120
used_memory_peak:2056544368
used_memory_peak_human:1.92G
used_memory_lua:36864
mem_fragmentation_ratio:0.74
mem_allocator:jemalloc-3.6.0
# Clients
connected_clients:6
client_longest_output_list:67963
client_biggest_input_buf:0
blocked_clients:0
<code class="docutils literal" style="line-height: 1.5em; color: rgb(62, 67, 73); font-size: 16px; background-color: rgb(255, 255, 255);">client_longest_output_list</code><span style="line-height: 1.5em; color: rgb(62, 67, 73); font-family: sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);"> : 当前连接的客户端当中,最长的输出列表</span>