Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a web server running Cent OS 5 with Apache. I have over 1GB of Ram and the MaxSpareServers set to 15. This would be fine under most situations, but for some reason my httpd processes are ballooning to over 150 mb a piece. I was googling around and saw a program called GTop and tried that, but I couldn't find any good tutorials on how to install it. Are there any simple ways to accomplish this?

Am I headed in the right direction or is there a better way to solve this problem?

share|improve this question
1  
First, establish whether it is a problem. Where does that 150MB figure come from? Is that the resident set (in which case it's a lot if each process is serving a single concurrent request, but not if it has 10000 threads), or the total mapped memory (which could be reasonable if you have many modules and opened data files)? –  Gilles Jun 7 '11 at 22:30
    
It may be worth reading Apache performance tuning –  RedGrittyBrick Jun 8 '11 at 9:54
add comment

2 Answers

What do you serve using Apache ? Unloading some un-used modules could help bring down memory usage. Also the application you're serving could be leaking/using a lot of memory. Also try decreasing values of MaxClients and KeepAliveTimeout.

share|improve this answer
add comment

The 150MB is not apiece. It's almost certainly mostly shared. What you're saying doesn't suggest a problem.

share|improve this answer
add comment

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.