- https://blog.csdn.net/oujiangping/article/details/78580450
- https://blog.csdn.net/gatieme/article/details/78885908
- ps aux|grep MySQL-proxy
第二个就是 3318 的进程号
- perf record -p 1674 -F 999 -a -g -- sleep 20
- perf script> out.perf
- ./stackcollapse-perf.pl out.perf> out.folded
- ./flamegraph.pl out.folded> test.svg
- sysbench --test=/usr/share/sysbench/tests/include/oltp_legacy/oltp.lua --MySQL-host=10.17.90.37 --MySQL-port=3318 --MySQL-user=test --MySQL-password=123456 --MySQL-db=test --oltp-table-size=10000000 --oltp-tables-count=64 --threads=1000 --oltp-read-only=on --report-interval=10 --rand-type=uniform --max-requests=0 --percentile=99 --oltp-skip-trx=on --time=120 --db-driver=MySQL run
来源: http://www.bubuko.com/infodetail-2826819.html