50%

Become a Vendor

COMMISSION

Developer for

Siberian&Nwicode

One reason why your push will never see the light

Push notifications often crashes  Apache
Many may be the reasons why your push notifications will never see the light of day.

One of them is the configuration of mpm_prefork.conf in apache.

When you send a push notification your server will generate loading and in some cases high loading .

The CPU will be 100% and in error log you will find this error:

AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
Apache will grow and your pushes will never be sent.

or

AH00180: WARNING: MaxRequestWorkers of 512 exceeds ServerLimit value of
 256 servers, decreasing MaxRequestWorkers to 256.
 To increase, please see the ServerLimit directive.

The solution is to set up well : <IfModule mpm_prefork_module>

That’s the rule:

To increase it, you must also raise MaxRequestWorkers using the following formula: ServerLimit value x 25 = MaxRequestWorkers value. For example, if ServerLimit set to 20, then MaxRequestWorkers will be 20 x 25 = 500. MPM Prefork: The default MaxRequestWorkers value is 256.

For this reason a good configuration could be the following :

you should edit mpm_prefork

<IfModule mpm_prefork_module>
StartServers 10
MinSpareServers 10
MaxSpareServers 20
ServerLimit 2000
MaxRequestWorkers 1500
MaxConnectionsPerChild 10000
</IfModule>

If you have any issues please write us to info@appteam.it

Leave a Reply

Your email address will not be published. Required fields are marked *

Appteam to offer you a better experience on this site uses its own and third-party technical, analytical and profiling cookies. The site also uses third-party tracking cookies to adapt advertising to your preferences.

If you want to know more or refuse consent to the use of cookies click here. By continuing to browse, you consent to the use of cookies.

Privacy Settings saved!
GDPR Center

When you visit a website, it can store or retrieve information on your browser, mainly in the form of cookies. Check your personal cookie services here.

These cookies are necessary for the website to function and cannot be disabled in our systems.

In order to use this website we use the following technically required cookies
  • wordpress_logged_in_
  • wordpress_sec
  • wordpress_test_cookie

We use WooCommerce as a purchasing system. 2 cookies will be stored for the shopping cart and order processing. These cookies are strictly necessary and cannot be disabled.
  • woocommerce_cart_hash
  • woocommerce_items_in_cart

  • wordpress_test_cookie
  • wordpress_logged_in_
  • wordpress_sec

Decline all Services
Accept all Services

Main Menu