title: Apache 2.4 php 7.2 Apache ( php module) increase max connections to handle 10000
body: <p>I have project with apache(2.4) and php(7.2), which apache uses mpm_fork
  how can I increase max connections in apache to handle 10,000 cocurrent connections
  ?
  I'm testing with <a href="https://loader.io" rel="nofollow noreferrer">https://loader.io</a> , It just can handle max to 5000 concurrent connections ( in 15 s ).</p>
  
  <p>this is my current apache config :</p>
  
  <pre><code>DefaultRuntimeDir ${APACHE_RUN_DIR}
  Timeout             300
  &lt;IfModule prefork.c&gt;
      StartServers            100
      MinSpareServers         100
      MaxSpareServers         100
      ServerLimit             10000
      MaxClients              10000
      MaxRequestWorkers       10000
      MaxRequestsPerChild     4000
  &lt;/IfModule&gt;
  PidFile ${APACHE_PID_FILE}
  KeepAlive On
  MaxKeepAliveRequests 1000
  KeepAliveTimeout 5
  User ${APACHE_RUN_USER}
  Group ${APACHE_RUN_GROUP}
  HostnameLookups Off
  ErrorLog ${APACHE_LOG_DIR}/error.log
  LogLevel warn
  IncludeOptional mods-enabled/*.load
  IncludeOptional mods-enabled/*.conf
  Include ports.conf
  &lt;Directory /&gt;
          Options FollowSymLinks
          AllowOverride None
          Require all denied
  &lt;/Directory&gt;
  &lt;Directory /usr/share&gt;
          AllowOverride None
          Require all granted
  &lt;/Directory&gt;
  &lt;Directory /var/www/&gt;
          Options Indexes FollowSymLinks
          AllowOverride None
          Require all granted
  &lt;/Directory&gt;
  
  AccessFileName .htaccess
  &lt;FilesMatch "^\.ht"&gt;
          Require all denied
  &lt;/FilesMatch&gt;
  
  LogFormat "%v:%p %h %l %u %t \"%r\" %&gt;s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  LogFormat "%h %l %u %t \"%r\" %&gt;s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  LogFormat "%h %l %u %t \"%r\" %&gt;s %O" common
  LogFormat "%{Referer}i -&gt; %U" referer
  LogFormat "%{User-agent}i" agent
  
  IncludeOptional conf-enabled/*.conf
  IncludeOptional sites-enabled/*.conf
  ServerName localhost
  </code></pre>
  
  <p>consider, there is no problem with my hardware,
  I checked my resource usage, I never passed 20 % usage of cpu and memory during my tests.</p>