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 #+BEGIN_SRC: bash
Timeout 30 Timeout 30
KeepAlive On KeepAlive On
MaxKeepAliveRequests 50 MaxKeepAliveRequests 5
KeepAliveTimeout 10 KeepAliveTimeout 1
<IfModule mpm_prefork_module> <IfModule mpm_prefork_module>
StartServers 3 StartServers 5
MinSpareServers 2 MinSpareServers 5
MaxSpareServers 5 MaxSpareServers 10
MaxClients 10 MaxClients 10
MaxRequestsPerChild 1000 MaxRequestsPerChild 10
</IfModule> </IfModule>
<IfModule mpm_worker_module> <IfModule mpm_worker_module>
StartServers 2 StartServers 2
MinSpareThreads 25 MinSpareThreads 5
MaxSpareThreads 75 MaxSpareThreads 5
ThreadLimit 64 ThreadLimit 6
ThreadsPerChild 25 ThreadsPerChild 10
MaxClients 10 MaxClients 10
MaxRequestsPerChild 0 MaxRequestsPerChild 10
</IfModule> </IfModule>
<IfModule mpm_event_module> <IfModule mpm_event_module>
StartServers 2 StartServers 2
MinSpareThreads 25 MinSpareThreads 5
MaxSpareThreads 75 MaxSpareThreads 5
ThreadLimit 64 ThreadLimit 6
ThreadsPerChild 25 ThreadsPerChild 10
MaxClients 10 MaxClients 10
MaxRequestsPerChild 0 MaxRequestsPerChild 10
</IfModule> </IfModule>
#+END_SRC #+END_SRC