Page 1 of 1

Error Log- Apache takes up 99% CPU

PostPosted: 07. April 2006 02:48
by sthosting
I have windows os ..
My server sometimes will run and stay at 99% CPU and the server wont server any pages at this time..
i checked the error logs and found this..

[Thu Apr 06 17:34:33 2006] [warn] (OS 121)The semaphore timeout period has expired. : winnt_accept: Asynchronous AcceptEx failed.
[Thu Apr 06 17:44:10 2006] [warn] (OS 121)The semaphore timeout period has expired. : winnt_accept: Asynchronous AcceptEx failed.
[Thu Apr 06 17:44:10 2006] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.
[Thu Apr 06 17:44:10 2006] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.
[Thu Apr 06 17:44:11 2006] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.
[Thu Apr 06 19:16:10 2006] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.
[Thu Apr 06 21:04:49 2006] [warn] (OS 121)The semaphore timeout period has expired. : winnt_accept: Asynchronous AcceptEx failed.
[Thu Apr 06 21:31:06 2006] [warn] Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting
[Thu Apr 06 21:41:06 2006] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu Apr 06 21:41:06 2006] [notice] Child 2928: Exit event signaled. Child process is ending.
[Thu Apr 06 21:41:18 2006] [warn] pid file K:/xampplite/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

I have raised the ThreadsPerChild in the httpd.mem.conf file to 100 what else can i do? Iam doing this right?

PostPosted: 07. April 2006 03:22
by Kolle
Look at the thread on the top of page 4.

* My CPU load is with the Apache almost by 99%
Please, enable following line = > # Win32DisableAcceptEx in the /xampp/Apache/conf/httpd.conf.

In this case correct is: Win32DisableAcceptEx

The newer Apache versions have been an improved Winsock 2 support. But it does not work correctly with the Windows home versions. The statement "Win32DisableAcceptEx" in the httpd.conf deactivate this support. Sometimes, some Windows NT systems make trouble too. We do not know why.

-----------------------------------------------------------------------------------

Implement this at the end of the conf file.

# Win32DisableAcceptEx --> /xampp/Apache/conf/httpd.conf

Think this helped me.

PostPosted: 07. April 2006 04:20
by sthosting
Thank you .. I Added this to line 66 or sumthing like that .. where exatly do i put this??

PostPosted: 07. April 2006 04:24
by Kolle
I put it in the end of the file. Dont know if it works, but it seems like that. Haven`t had the problem after adding that line.

PostPosted: 08. April 2006 03:00
by sthosting
OK Im trying this again .. put this code at the end of my httpd.conf file

Code: Select all
# Note: The following must must be present to support
#       starting without SSL on platforms with no /dev/random equivalent
#       but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
# Win32DisableAcceptEx


is this where i put it and how its done?

PostPosted: 08. April 2006 03:13
by sthosting
I have done this and it still freezes .. any one on this forum who knows how to fix this and knows what there talking about ??

PostPosted: 08. April 2006 12:31
by Kolle

PostPosted: 09. April 2006 04:32
by Meisam
try removing the # from # Win32DisableAcceptEx

Meisam