background image

  这时候来自

percona 的 tcprstat 来救助了! 这个工具原本

开发用来调查

mysqld 的性能问题,所以不要奇怪它的

默认端口是

3306, 但是我们可以用这个工具来调查典型

request->response 类型的服务器。

  什么是

tcprstat:

   

tcprstat  is  a  free,  open-source  TCP  analysis  tool  that 

watches  network  traffic  and  computes  the  delay  between 

requests and responses. From this it derives response-time 

statistics and prints them out. The output is similar to other 

Unix -stat tools such as vmstat, iostat, and mpstat. The tool 

can optionally watch traffic to only a specified port, which 

makes  it  practical  for  timing  requests  and  responses  to  a 

single daemon process such as mysqld, httpd, memcached, 

or any of a variety of other server processes.