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.
jmhabis2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ramakanta SahooCommented:
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:

http://httpd.apache.org/docs/2.0/platform/windows.html


Glad if this helps,
RK
0
NopiusCommented:
Hi.

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                                                      
</IfModule>

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


0
NopiusCommented:
> [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
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

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?
0
giltjrCommented:
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.

0
madunix (Fadi SODAH)Commented:
http://httpd.apache.org/dev/debugging.html    is a must.
http://www.linuxjournal.com/article/4222
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
0
jmhabis2Author Commented:
Thank you for all your replies, will attempt at each and reply with the results
0
jmhabis2Author 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 :)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.