Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache using 90-100% CPU

Status
Not open for further replies.

Gombie

Programmer
Jan 27, 2007
3
US
I just installed WAMP5 and every time I start apache the cpu usage jumps up to about 90-100% until I close it again. And it seems to get stuck, and it never actually starts. This never used to happen in the past, butr I recently installed comodo firewall. And this happens even when the firewall is off.

Here is the error Im getting in my apache error log:

[Sat Jan 27 10:56:41 2007] [error] (OS 10038)An operation was attempted on something that is not a socket. : Child 2672: Encountered too many errors accepting client connections. Possible causes: dynamic address renewal, or incompatible VPN or firewall software. Try using the Win32DisableAcceptEx directive.

I put Win32DisableAcceptEx at the top of my httpd.conf and that fixed the major cpu suckage, but the server still will not start up. This is the end of the log file when using Win32DisableAcceptEx:

[Sat Jan 27 11:00:41 2007] [notice] Child 4008: Released the start mutex
[Sat Jan 27 11:00:42 2007] [notice] Child 4008: Waiting for 250 worker threads to exit.
[Sat Jan 27 11:00:42 2007] [notice] Child 4008: All worker threads have exited.
[Sat Jan 27 11:00:42 2007] [notice] Child 4008: Child process is exiting
[Sat Jan 27 11:00:42 2007] [notice] Parent: Child process exited successfully.
[Sat Jan 27 11:06:17 2007] [notice] Apache/2.0.59 (Win32) PHP/5.2.0 configured -- resuming normal operations
[Sat Jan 27 11:06:17 2007] [notice] Server built: Jul 27 2006 15:55:03
[Sat Jan 27 11:06:17 2007] [notice] Parent: Created child process 2740
[Sat Jan 27 11:06:18 2007] [notice] Disabled use of AcceptEx() WinSock2 API
[Sat Jan 27 11:06:18 2007] [notice] Child 2740: Child process is running
[Sat Jan 27 11:06:18 2007] [notice] Child 2740: Acquired the start mutex.
[Sat Jan 27 11:06:18 2007] [notice] Child 2740: Starting 250 worker threads.
[Sat Jan 27 11:06:19 2007] [notice] Child 2740: Listening on port 80.

mySQL is running fine, apache is in the processes with 0% cpu usage, but it wont fully start. Any help would be very appreciated
 
Well, it is running in the processes, but WAMP shows only mysql running.
 
i'm not exper but if its running in the proccesses but not the firewall, maybe the firewall is not allowing to be excecuted. try configuring your firewall manually.....i'm guessing you left it on auto-config?
 
Well it is working now. All I did was uninstall wamp, deleted c:/wamp/ (backed up the reinstalled wamp and now it seems to be working. I have no idea why it is working now, as I tried this several times earlier and it never worked.

Oh well, I guess as long as it is working now I have nothing to complain about!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top