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

Impostazioni sulla privacy salvate!
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.

Questi cookie sono necessari per il funzionamento del sito Web e non possono essere disattivati nei nostri sistemi.

Usiamo WooCommerce come sistema di acquisto. Per l'elaborazione del carrello e dell'ordine verranno memorizzati 2 cookie. Questi cookie sono strettamente necessari e non possono essere disattivati.
  • woocommerce_cart_hash
  • woocommerce_items_in_cart

Rifiuta tutti i servizi
Accetta tutti i servizi

Menu principale