| 服务端 | cpu/commandstats/slowlog |
|---|---|
| 系统侧 | top/perf 观察进程内热点 |
| 常见源 | 复杂命令、过期风暴、重写并发 |
示例
示例
redis-cli INFO cpu
redis-cli INFO commandstats
redis-cli CONFIG GET hzCPU 排查与延迟排查同源,两边证据结合行动才准。
排查路径:INFO cpu 看主/子进程 → commandstats 找高耗时命令 → SLOWLOG 抽样 → 排查大键与批量任务 → 系统层看是否有 fork/子进程重写并发。
| 服务端 | cpu/commandstats/slowlog |
|---|---|
| 系统侧 | top/perf 观察进程内热点 |
| 常见源 | 复杂命令、过期风暴、重写并发 |
redis-cli INFO cpu
redis-cli INFO commandstats
redis-cli CONFIG GET hz