Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Determining what is using each php-cgi.exe instance?



2:35 pm on Sep 29, 2012 (gmt 0)

5+ Year Member

I have several php-cgi.exe processes which are using the lion's share of my server CPU resources (ASP.NET uses hardly any) and I am trying to optimize. I want to determine which process is being used by which website so I can make sure the code is not an issue, but I am not sure how to match the instances to the websites. Is this possible, or am I off-base?

Any tips are appreciated.

Windows Server 2008 SP2
Pentium G6950 2.80 GHz
PHP 5.3


2:23 am on Sep 30, 2012 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

you could add some logging to the php script which identifies the hostname and process id for each request.

i think windows server or iis have a performance monitor or system monitor tool that might be informative.

this looks like it might have some helpful details.
Troubleshooting High CPU in an IIS 7.x Application Pool : The Official Microsoft IIS Site:
http://www.iis.net/learn/troubleshoot/performance-issues/troubleshooting-high-cpu-in-an-iis-7x-application-pool [iis.net]


12:50 pm on Sep 30, 2012 (gmt 0)

5+ Year Member

Excellent ideas/tips. Thanks for the input!

Featured Threads

Hot Threads This Week

Hot Threads This Month