Welcome to WebmasterWorld Guest from 54.226.133.245

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)

New User

5+ Year Member

joined:May 18, 2010
posts:8
votes: 0


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
IIS7
Pentium G6950 2.80 GHz
4 GB RAM
PHP 5.3
2:23 am on Sept 30, 2012 (gmt 0)

Administrator

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

joined:Aug 10, 2004
posts:10544
votes: 8


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 Sept 30, 2012 (gmt 0)

New User

5+ Year Member

joined:May 18, 2010
posts:8
votes: 0


Excellent ideas/tips. Thanks for the input!