Apache freeze

Hi everyone,
I have apache running on a production server.
It is freezing every now and then and I have to restart apache.
the browser do not give any error but all pages freeze, and the log file only log the restart but not the cause of the freeze. is there anything helpful with this log?

[Thu Apr 08 22:43:26 2010] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu Apr 08 22:43:26 2010] [notice] Child 1880: Exit event signaled. Child process is ending.
[Thu Apr 08 22:43:27 2010] [notice] Child 1880: Released the start mutex
[Thu Apr 08 22:43:27 2010] [notice] Child 1880: Waiting for 250 worker threads to exit.
[Thu Apr 08 22:43:28 2010] [notice] Child 1880: All worker threads have exited.
[Thu Apr 08 22:43:29 2010] [notice] Child 1880: Child process is exiting
[Thu Apr 08 22:43:29 2010] [notice] Parent: Child process exited successfully.
[Thu Apr 08 22:43:32 2010] [notice] Apache/2.2.4 (Win32) PHP/5.2.8 configured -- resuming normal operations
[Thu Apr 08 22:43:32 2010] [notice] Server built: Jan  9 2007 23:17:20
[Thu Apr 08 22:43:32 2010] [notice] Parent: Created child process 1832
[Thu Apr 08 22:43:32 2010] [notice] Disabled use of AcceptEx() WinSock2 API
[Thu Apr 08 22:43:32 2010] [notice] Child 1832: Child process is running
[Thu Apr 08 22:43:32 2010] [notice] Child 1832: Acquired the start mutex.
[Thu Apr 08 22:43:32 2010] [notice] Child 1832: Starting 250 worker threads.
[Thu Apr 08 22:43:32 2010] [notice] Child 1832: Listening on port 80.
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

jmhabis2Connect With a Mentor Author Commented:
i resolved the issue by increasing the ThreadsPerChild from 250 to 500, that did the trick.

Seems like i have users that are sending too many simultaneous requests. Thanks for all your answers :)
Ramakanta SahooConnect With a Mentor Commented:
What is the Apache version and what is the user count hitting apache concurrently

Try to tune below to avoid this freezes:

    * lower MaxKeepAliveRequests and KeepAliveTimeout in the Apache config
    * set MaxRequestsPerChild in the setting of the prefork settings, to keep Apache workers cleaned more often.

Try below url which will help you fine tune apache on windows:


Glad if this helps,

It seems you have too many connections.
> [Thu Apr 08 22:43:27 2010] [notice] Child 1880: Waiting for 250 worker threads to exit.

Check and tune ServerLimit httpd.conf variable:
<IfModule prefork.c>                                                            
StartServers       8                                                            
MinSpareServers    5                                                            
MaxSpareServers   40
ServerLimit      512                                                          
MaxClients       256                                                            
MaxRequestsPerChild  4000                                                      

 check for number of established connections 'netstat -an | grep -i :80 | grep ESTA | wc -l'

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

> [Thu Apr 08 22:43:26 2010] [notice] Parent: Received shutdown signal -- Shutting down the server.

someone kills your server (some process) - so this is externally initiated shutdown
jmhabis2Author Commented:
ok I will look into all that. I am on Windows server.
I did initiate the shutdown after the server freezed.
Do you need the httpd.conf?
Is Thu Apr 08 22:43:26 2010 the date and time you shutdown the server?  If so what does the access and error logs show up to that point in time.

madunixChief Information Security Officer Commented:
http://httpd.apache.org/dev/debugging.html    is a must.
can you check the followng:
- look in /var/log any suspicious
- do you have free drive space, but do all partitions have free space
- are all the file systems OK? fsck
- memory diagnostic.... could be a bad piece of RAM
- check apache config
- check mysql config it could memory setting bigger than your actual RAM (if you have mysql)
- Apache service starts with no errors??
- check Apache error log if contains hints
jmhabis2Author Commented:
Thank you for all your replies, will attempt at each and reply with the results
All Courses

From novice to tech pro — start learning today.