Identify Long Running or Slow PHP Scripts

Posted by Kirk on Server Fault See other posts from Server Fault or by Kirk
Published on 2013-06-26T22:18:33Z Indexed on 2013/06/26 22:22 UTC
Read the original article Hit count: 230

Filed under:
|
|
|
|

I have web server that is getting around 25K visits a day up at yougetsignal.com. Sometimes the site feels a bit sluggish. I am hosting it on nginx with php5-fpm. Is there a way for me to see a list of all of the long running requests that are coming to the site?

I'd love to have a real-time list of all of the active requests that PHP is handling and how long they have been running. Kind of like top, but just for the web server. This would let me know how long requests are taking and which script is the culprit.

Anyone have any ideas on how I can do this?

© Server Fault or respective owner

Related posts about nginx

Related posts about webserver