程序处理请求过程中,根据监控发现latency会产生周期性的峰值。因此尝试了多种性能测试工具,记录如下。
vmstat -at 1 | tee vmstat.log
watch -n 1 -d ‘ps -o majflt,minflt -p pid
ps -o pid,psr,comm -p pid
taskset -a -p -c 0-30 pid
top -H -d 1 -p pid
valgrind —leak-check-full --show-leak-kinds=all --log-file=“valgrind.log"
strace -cp pid -f
原文:https://www.cnblogs.com/wangzhiyi/p/10391432.html