寻觅生命中的那一片浅草......

每日存档 十二月 15th, 2014

【转】pt-ioprofile定位负载来源文件

pt-ioprofile定位负载来源文件
官网介绍
http://www.percona.com/doc/percona-toolkit/2.0/index.html
wget percona.com/get/percona-toolkit.tar.gz
tar xf percona-toolkit.tar.gz
cd percona-toolkit
perl Makefile.PL
make
make install
查看pid为6378 的进程io情况分析 这里是mysqld进程,对于定位问题更有用的是通过IO的吞吐量来进行定位。使用参数 –cell=sizes,该参数将结果已 B/s 的方式展示出来
pt-ioprofile –profile-pid=6378 –cell=sizes –run-time=1
下面这条可以进行时时观察,
watch -n 1 pt-ioprofile –profile-pid=6378 –cell=sizes –run-time=1

转载自:http://www.huanglihuang.com/post/20.html

2014年十二月
« 11月   8月 »
1234567
891011121314
15161718192021
22232425262728
293031