每3个小时左右,我的REDIS服务器就会停止接受新的连接。起初,我注意到后台保存功能被取消了。但是,尽管关闭了下来,但跌势并没有停止。
我相信这仅仅是因为我的流量大,并且需要从属/掌握我的Redis配置,但是当我查看自己的Redis统计信息时,看不到任何离谱的数字。
能否请您检查一下我的统计信息,并告诉我您是否看到奇怪的东西?如果没有,您能告诉我如何找到瓶颈吗?
127.0.0.1:6379> info server
# Server
redis_version:4.0.9
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:7e90ed9f95152d33
redis_mode:standalone
os:Linux 4.9.87-xxxx-std-ipv6-64 x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:5.4.0
process_id:30751
run_id:446189fb7741fc78b05519affaf73dc27a36ac38
tcp_port:6379
uptime_in_seconds:11029
uptime_in_days:0
hz:10
lru_clock:10618887
executable:/usr/local/bin/redis-server
config_file:/etc/redis/redis.conf
127.0.0.1:6379> info stats
# Stats
total_connections_received:1333366
total_commands_processed:5801798
instantaneous_ops_per_sec:516
total_net_input_bytes:921105828
total_net_output_bytes:5496211202
instantaneous_input_kbps:72.90
instantaneous_output_kbps:548.69
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
expired_stale_perc:0.00
expired_time_cap_reached_count:0
evicted_keys:0
keyspace_hits:2401481
keyspace_misses:11163
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:0
migrate_cached_sockets:0
slave_expires_tracked_keys:0
active_defrag_hits:0
active_defrag_misses:0
active_defrag_key_hits:0
active_defrag_key_misses:0
127.0.0.1:6379> info memory
# Memory
used_memory:34222784952
used_memory_human:31.87G
used_memory_rss:32877064192
used_memory_rss_human:30.62G
used_memory_peak:34494353448
used_memory_peak_human:32.13G
used_memory_peak_perc:99.21%
used_memory_overhead:901866
used_memory_startup:508064
used_memory_dataset:34221883086
used_memory_dataset_perc:100.00%
total_system_memory:33690243072
total_system_memory_human:31.38G
used_memory_lua:37888
used_memory_lua_human:37.00K
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
mem_fragmentation_ratio:0.96
mem_allocator:jemalloc-4.0.3
active_defrag_running:0
lazyfree_pending_objects:0