I have a small VPS server in which Nginx is the end of the front which provides service to stable media files and an Apache 2.2 Running prefork mpm server mod_wsgi
With a (very) small site load and work, it is currently using 143 MB of 256 MB RAM.
The top
command I can see that Apache is using 52.9% available RAM, using 2.1% in the memory in the second.
Keeping in mind that I am planning on putting some Django projects on this server, I am thinking that if anything I can do to trim the amount of RAB which Using Apache?
If you want to be with Apache, some suggestions, almost in the order of difficulty:
- The use of the Apache worker MPM will reduce the real memory for client connections rather than prefix, but know that the virtual memory allocated for Apache can look very high, for each thread stack 8 MB due to Linux allocation It does not really matter, unless your VPS is brain-dead and the actual RSS (resident set size) is the cap virtual memory instead of memory. In that case, you can learn how to reduce the thread stack size (under the memory-constrained VPS section).
- Edit your Apache config file and reduce start-up, MaxLeans, Minspairts, and MaxSpitter's settings in roughly ratios. The appropriate level will be the balance between your desired memory usage and the number of concurrent customers for whom you should be able to serve.
- Switch to mod_python instead (in daemon mode).
Comments
Post a Comment