Reduce memory usage of Apache on Centos server

| No Comments | No TrackBacks

There are so many tips you can google, some are very complicated, some are useless.

Now I want to share my experience to reduce memory usage of Apache on Centos server.

You have to have Webmin installed on your server first.
Server >> Apache Webserver >> Global configuration >> Processes and Limits

There are three figures you can change to reduce the memory usage.
Maximum spare server processes: 20 (default), I changed it to 10
Minimum spare server processes: 5 (default), I changed it to 4
Initial server processes: 8 (default), I changed it to 5.

The total memory usage reduced from about 500M to 300M.
Every httpd occupied 20M roughly. So I cut 10 server processes, is to save about 200M memory.


No TrackBacks

TrackBack URL: http://www.yinfor.com/mtcgi/mt-t-0916.cgi/2429

Leave a comment

About this Entry

This page contains a single entry by David Yin published on October 21, 2009 3:00 PM.

R-Drive III external hard disk adapter was the previous entry in this blog.

Ubuntu 9.10 coming soon is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

OpenID accepted here Learn more about OpenID
Powered by Movable Type 4.32-en

Subscribe

Online Tools

Code Convertor