Skip to content

Instantly share code, notes, and snippets.

@benuski
Last active August 25, 2017 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benuski/7b8d2287ea14cc6cfbd7b3fb8a1cb5a0 to your computer and use it in GitHub Desktop.
Save benuski/7b8d2287ea14cc6cfbd7b3fb8a1cb5a0 to your computer and use it in GitHub Desktop.
#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