Knowledgebase

track apache usage with php fastcgi

Posted by skywin, 04-03-2012, 09:24 AM
Hi, how is the best way to find out a PHP script that is using excessive Apache resources in a server with PHP in fastcgi mode? Thanks.

Posted by Infinitnet, 04-03-2012, 11:04 AM
mod_status should do. http://httpd.apache.org/docs/2.0/mod/mod_status.html

Posted by WebHostDog, 04-03-2012, 11:13 AM
You should see this via Linux top command as long as PHP is running with the Linux username (php-fcgi).

Posted by skywin, 04-04-2012, 07:02 AM
Yes, that's the best way. But how I can do to get a snapshot when there is a high load average? Thanks.

Posted by Patrick, 04-04-2012, 07:30 AM
Nope. It's one of my biggest complaints with FastCGI because it just shows the process as PHP. Whereas with like suPHP it would show the process AND what PHP file was being executed. suPHP: user 99.9% php /home/user/public_html/random.php FastCGI: user 99.9% php I've never found a way to make FastCGI show what it's executing...

Posted by Server Adminz, 04-04-2012, 10:36 AM
Assuming this is for a cpanel server,



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
FTP service question (Views: 597)


Language:

Client Login

Email

Password

Remember Me

Search