Jump to content


svchost.exe devouring my CPU!

  • Please log in to reply
1 reply to this topic

#1 seidanis

  • Members
  • Pip
  • Newbie
  • 4 posts
  • LocationAthens, Greece

Posted 08 November 2003 - 06:32 PM


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 Seidanis


  • Members
  • PipPip
  • Member
  • 21 posts
  • LocationMissouri, USA

Posted 14 November 2003 - 05:08 PM

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) {
} // $x is never incremented!!![/php:1:22049a344c]
Hope this sheds some light, [br]LAMP [br]******************************* [br]Warning: main(): Failed opening \'sig.php\' for inclusion (include_path=\'.:/usr/local/share/pear\') in /usr/local/www/data/phpfreaks/forums/topic.php on line 435

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users