Jump to content

svchost.exe devouring my CPU!


seidanis

Recommended Posts

Hello,

 

To make a long story short, I recently noticed that svchost.exe as LOCAL SERVICE in my Windows installation is taking up close to or more than 50% of the CPU. This started happening after I created a few virtual hosts from within the Apache conf file.

 

The workaround to this is stop the Apache server, wait a couple of seconds and then start it again (restart won\'t do the trick). svchost.exe goes down to 0% of CPU and never rises again (until the next re-boot, that is).

 

Any idea what causes the trouble and how I can troubleshoot it?

 

Thanx in advance,

 

Alex

Link to comment
Share on other sites

Hmm, over in \'Nix land, that\'d likely be hanging child processes. Do you have the possibility of calling \'graceful\' in the Windows version?

 

But what could exactly be causing them to hang, I dunno. I\'d look at the site(s) for errors of any kind (in the PHP code). Are scripts attempting to make TCP/IP connections of any kind? Access a database that might be not running? How about a firewall ... Apache tends to like to look for DNS info about itself ....

 

If you think it\'s caused by one of more of your virthosts, could you comment each of them out (one at a time, or various combis) and kill/restart? Might help narrow it down, I guess.....

 

I believe the only time I\'ve seen anything like this was a case of bad scripts on the host. Y\'know---[php:1:22049a344c]while ($x<$y) {

do_something();

} // $x is never incremented!!![/php:1:22049a344c]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.