These Apache settings actually seem to work (i.e. avoid oom-killer killing mysqld)

This commit is contained in:
Bob Mottram 2014-04-19 08:36:01 +01:00
parent 20476e7613
commit 66438b4a3b
1 changed files with 21 additions and 21 deletions

View File

@ -2045,35 +2045,35 @@ Search for MaxClients and replace the value with 6. As an example the settings s
#+BEGIN_SRC: bash
Timeout 30
KeepAlive On
MaxKeepAliveRequests 50
KeepAliveTimeout 10
MaxKeepAliveRequests 5
KeepAliveTimeout 1
<IfModule mpm_prefork_module>
StartServers 3
MinSpareServers 2
MaxSpareServers 5
MaxClients 10
MaxRequestsPerChild 1000
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 10
MaxRequestsPerChild 10
</IfModule>
<IfModule mpm_worker_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxClients 10
MaxRequestsPerChild 0
StartServers 2
MinSpareThreads 5
MaxSpareThreads 5
ThreadLimit 6
ThreadsPerChild 10
MaxClients 10
MaxRequestsPerChild 10
</IfModule>
<IfModule mpm_event_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxClients 10
MaxRequestsPerChild 0
StartServers 2
MinSpareThreads 5
MaxSpareThreads 5
ThreadLimit 6
ThreadsPerChild 10
MaxClients 10
MaxRequestsPerChild 10
</IfModule>
#+END_SRC