Last active
August 25, 2017 16:36
-
-
Save benuski/7b8d2287ea14cc6cfbd7b3fb8a1cb5a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#To tune Apache to use less threads (and therefore less memory) on low memory servers, such as a cheap VPS or a Raspberry Pi | |
<IfModule mpm_prefork_module> | |
StartServers 1 | |
MinSpareServers 1 | |
MaxSpareServers 3 | |
MaxClients 10 | |
MaxRequestsPerChild 3000 | |
</IfModule> | |
#Or if you have something that supports the worker module | |
<IfModule mpm_worker_module> | |
StartServers 1 | |
MinSpareThreads 5 | |
MaxSpareThreads 15 | |
ThreadLimit 25 | |
ThreadsPerChild 5 | |
MaxClients 25 | |
MaxRequestsPerChild 200 | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment