homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

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

Msg#: 4501596 posted 2:35 pm on Sep 29, 2012 (gmt 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
Pentium G6950 2.80 GHz
PHP 5.3



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

Msg#: 4501596 posted 2:23 am on Sep 30, 2012 (gmt 0)

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]


Msg#: 4501596 posted 12:50 pm on Sep 30, 2012 (gmt 0)

Excellent ideas/tips. Thanks for the input!

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved