homepage Welcome to WebmasterWorld Guest from 54.198.130.203
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque & physics

Webmaster General Forum

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




msg:4501598
 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
IIS7
Pentium G6950 2.80 GHz
4 GB RAM
PHP 5.3

 

phranque




msg:4501870
 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]

jungalist




msg:4501983
 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