Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Please see the following screenshot. There are too many apache processes all in D(disk sleep) state with very high ram usage.

enter image description here

Is there a way to know what's causing these processes to stay in D state and eating so much memory?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I would first look at apachtctl fullstatus (you may need to install w3m first, a text-based web-browser).

You are out of memory (look at your swap figures), so you need to down-tune the number of processes that are started in your apacheconf. Look at MaxClients, ServerLimit, MaxSpareClients, MinSpareClients, etc.

share|improve this answer

Your Answer

 
discard

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.