There was a task to configure the Apache for better performance. At the moment there are problems with memory overflow and server crash.

On the server only Apache (2.2) and PHP 5.5

The total amount of RAM 4 GB.

There is a mpm_prefork module with the following settings:

<IfModule mpm_prefork_module> ServerLimit 1000 StartServers 10 MinSpareServers 10 MaxSpareServers 50 MaxClients 1000 KeepAlive Off MaxRequestsPerChild 5000 ListenBacklog 100 </IfModule> 

Actually, these settings and cause most of the questions. What can be changed for the better?

  • And how much in php memory_limit ? - vp_arth
  • And the question is, what does it mean к лучшему ? To give extra users? If there is a permanent excess of traffic - it's time to grow horizontally. - vp_arth
  • @vp_arth limit is 512 MB. But on average, rarely when the amount of used memory reaches 50 MB per script. And for the better - this is to start to stop falling due to lack of memory. - newman

0