Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Every once in a while a page made available on the apache server is not available. After a few minutes everything is working (the party is often visited). How can I establish what this problem results from (how to read it from logs)?

share|improve this question
up vote 1 down vote accepted

start looking at /var/log/apache2/error.log [in debian world. possibly it's different location in settings of server/vhost ].

also enable status page and try to poll it automatically every say 30 sec and dump to disk - maybe your appache has limits for number of parallel connections it can handle and you run out of them?

install munin and start gathering statistics - maybe your machine swaps to death? surly monitoring tools will not help you when machine is dying but will show you trends.. you'll have some trace what happened just before the hiccup.

possibly you experience networking issues... does ssh / ping work when apache does not respond?

share|improve this answer
network is not rather problem, i try check i have max 2000 connection but maybe it is not enough.. how i can automatically save status page? – m238 Sep 9 '09 at 18:47
@m238 - try putting on cron every minute wget -O /var/log/apadate +%s localhost/server-status ; notice reverse apostrophe; this is temporary hack so you should clean up all apa* files after day or so and disable cron job. – pQd Sep 9 '09 at 18:58
thank it is good idea – m238 Sep 9 '09 at 19:03

I think I deciphered what you are asking...

Try using Apache's mod_status to see what it is doing.

In the httpd.conf file:

<Location /server-status>
SetHandler server-status

Order Deny,Allow
Deny from all
Allow from YOUR.IP

Restart apache and see what is happening. My guess is you are breaching the max clients limit.

share|improve this answer
it never happens me, it is rather strong machine 8 core, 24 GB RAM and I never see cpu (top command) more than 5%. But i believe users who told me that something like this happens. Is possibility to record everything what show server status?, sory for my English.. – m238 Sep 9 '09 at 18:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.