title: Apache performance tuning for high traffic with MPM Event
body: <p>I currently manage the following set of servers that serve about 700 web pages:</p>
  
  <h2>SERVER 1 (WEB)</h2>
  
  <ul>
  <li>Web server: Apache 2.4.29 with MPM Event</li>
  <li>PHP 7.2.22</li>
  <li>CPU: Intel Xeon CPU E5-2673 v4 @2.30GHz (4 cores) 16GB memory</li>
  <li>S.O: Ubuntu Server 18.04.2 LTS</li>
  </ul>
  
  <h2>SERVER 2 (DataBase)</h2>
  
  <ul>
  <li>DB: mysql 10.2.26</li>
  <li>CPU: Intel Xeon CPU E5-2673 v4 @2.30GHz (8 cores) 32 GB memory</li>
  <li>S.O: Ubuntu Server 18.04.2 LTS</li>
  </ul>
  
  <p>Both servers are connected on the same local network.</p>
  
  <p>Recurrently I have performance problems and I think it's because I don't have Apache optimized correctly.</p>
  
  <p>The web server receives many web requests that it does not manage well and produces high CPU consumption and consequently slowness in the whole server.</p>
  
  <p>Currently this is the MPM configuration I work with and I think it doesn't manage connections correctly:</p>
  
  <pre><code>&lt;IfModule mpm_event_module&gt;
          StartServers            2
          MinSpareThreads         25
          MaxSpareThreads         75
          ThreadLimit             64
          ThreadsPerChild         25
          MaxRequestWorkers       550
          ServerLimit             32
          MaxConnectionsPerChild  0
  &lt;/IfModule&gt;
  
  </code></pre>
  
  <p>Can anyone tell me an optimal configuration of the MPM according to the requirements and characteristics of the server?</p>