how to see which script use cpu...

how can i see which php scripts are using a lot of cpu and/or ram?


It’s a tricky problem, as the PHP scripts themselves don’t show up in the process list, only the PHP binary does.

By looking in “top”, if you’re using PHP in CGI or fcgid mode, you can see the owner of the PHP scripts that are using a lot of CPU/RAM.

At that point, you can use the Apache logs to determine what’s been called recently.

But, determining the specifics of what is causing a problem is as much an art as it is a science :slight_smile:


thanks anyway :wink: