Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

We have a dedicated server, with the following configuration: AMD Athlon (tm) 64 X2 Dual Core Processor 5600 + Memory: 4GB OS: Debian 4.0, kernel: 2.6.18-5-amd64 Apache/2.2.3 PHP/5.2.0-8 MYSQL: 5.0.32

The server works without problems, when suddenly from unknown causes httpd process hangs and consumes 50% CPU power. The situation presents the following chart:

We can not locate a cause or an effective remedy similar situations. Maybe some of you know how to locate the cause or how to deal with its consequences.

share|improve this question
up vote 2 down vote accepted

Try connecting to the processes with strace


This should produce a list of system calls that the worker is calling, possibly in a loop, looking for a file or other resource.

If this produces nothing, then the process may be spinning in a loop, you can use gdb to connect to the worker and find out the general area of execution

(gdb) bt 
share|improve this answer
It's great! Thank you! – user36022 Feb 26 '10 at 23:56
What was the cause of the hang ? – Dave Cheney Feb 27 '10 at 2:14
really helped me! thanks a lot – Nik Feb 17 '11 at 21:05

The first place to check is the system logs. Is anything odd showing up in:


Note if you're using virtual hosting then the Apache 2 log files might be in a different location.

share|improve this answer

Is this server in a live environment? If not, by looking through the apache logs- especially the error logs, you should be able to work out what process is causing this. It would be worth asking apache to log the process ids into the logs, so that when this happens you can see what the process was doing.

share|improve this answer
Ok, I can check error logs, but what should I look for? – user36022 Feb 25 '10 at 17:27

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.