Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Increase Apache process count?

Discussion in 'EasyApache' started by unity200, Jun 11, 2019.

  1. unity200

    unity200 Member

    Nov 16, 2006
    Likes Received:
    Trophy Points:
    1 - Im trying to optimize Apache on centos 7 and trying to increase Apache processes and threads while using event mpm, but its practically being ignored by cpanel:

    I tried editing


    both directly and through WHM apache configuration editor.

    Doesnt seem to have any effect.

    Then i tried to change the values in

    WHM ==> Service Configuration ==> Apache Configuration ==> Global Configuration

    This seem to have had some effect but it was only increasing processes from 8 or something to 10 or something despite i put in a few hundred. Moreover these values seem to be for mpm worker?

    I am trying to change these values via proper WHM ways instead of directly editing the config files.

    So if someone can point me in a proper direction, i would appreciate it.

    2- Is there a limit which cpanel imposes on accounts regarding apache process usage? Ie, accounts can use maximum 6 apache processes and 10 php-fpm processes or something?

    Because however i increase the values and benchmark a site with apache benchmark, the requests/sec fulfilled always stays in the same vicinity and does not change depending on the limits i increase in apache.
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Nov 14, 2017
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    DataCenter Provider
    This is the correct location to make these changes but you do need to keep in mind the following when modifying the ServerLimit vaues mpm_common - Apache HTTP Server Version 2.4
    This will also be noted in the apache error log after apache restarts if it's configured incorrectly.

    We don't impose a limit of this type. There are some hard limits imposed with event which are detailed in the apache 2.4 docs:

    mpm_common - Apache HTTP Server Version 2.4
    There is a hard limit of ThreadLimit 20000 (or ThreadLimit 100000 with event, ThreadLimit 15000 with mpm_winnt) compiled into the server. This is intended to avoid nasty effects caused by typos. To increase it even further past this limit, you will need to modify the value of MAX_THREAD_LIMIT in the mpm source file and rebuild the server.
    There are also pool defaults for PHP-FPM that you may want to look at as well. You can modify these values at WHM>>Software>>MultiPHP Manager -> System PHP-FPM Configuration
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    unity200 likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice