Jump to content

pm.max_children on Nginx server


rene_mcs

Recommended Posts

Hello,

we have some problems with our website for several days. -502 status on Nginx server. After a few minutes or after manual restart, it works again. 

We contacted our webhosting provider as we don't have access to the logs (no cpanel access). They told us that the maximum number of process has been reached (pm.max_children on Nginx server). We asked our developer but he says that it must come from the server, there is nothing he can do without any access to the webserver cpanel or comparable.

We had this problem already several times in the past. Then the webhosting provider did some updates in the .htaccess-file or on the webserver. But he told us that nothing changed since a few months.

Prestashop 1.7.5.1 with creative elements module and some other stuff.

Here is some log we've got from the provider, I'm not sure if it helps:

WARNING: [pool php72_{our website}] server reached max_children setting

0 SessionHandler::read <internal>:-1 

1 Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler::doRead /user/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php:46 

2 Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::read /user/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/AbstractSessionHandler.php:78 

3 Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::validateId /user/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/AbstractSessionHandler.php:67 

4 Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy::validateId /user/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/SessionHandlerProxy.php:89 

5 session_start <internal>:-1 

6 Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage::start /user/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php:130 

7 Symfony\Component\HttpFoundation\Session\Session::start /user/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Session.php:55 

8 Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage::hasToken /user/vendor/symfony/symfony/src/Symfony/Component/Security/Csrf/TokenStorage/SessionTokenStorage.php:75 

9 Symfony\Component\Security\Csrf\CsrfTokenManager::getToken /user/vendor/symfony/symfony/src/Symfony/Component/Security/Csrf/CsrfTokenManager.php:69 

10 PrestaShopBundle\Service\Routing\Router::generate /user/src/PrestaShopBundle/Service/Routing/Router.php:47 

11 Symfony\Bundle\WebProfilerBundle\Controller\ProfilerController::toolbarAction /user/vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php:137 

12 Symfony\Component\HttpKernel\HttpKernel::handleRaw /user/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:121 

13 Symfony\Component\HttpKernel\HttpKernel::handle /user/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:63 

14 Symfony\Component\HttpKernel\Kernel::handle /user/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:193 

15 <main> /user/metaladmin/index.php:1

 

Where can I begin to find the reason?

Thanks a lot in advance.

 

Regards,

René

Link to comment
Share on other sites

1 hour ago, Prestashop Addict said:

Hi, can you have access to log statistics or GA4, to see if you have aggressive scan of your site or denied of service?

The webhosting provider says that there are not unusual access from bots or DNS causing the problem. There was no update on the server neither. So they suggest checking the Prestashop installation. But debugging is always difficult in our installation (it crashes the site) and as the server problem are not always it is not possible to leave the site in maintenance mode as it is our production environment.

 

Where can I check the GA4 scans?

Link to comment
Share on other sites

On 4/23/2025 at 5:04 PM, Prestashop Addict said:

This is a server configuration of php fpm, you certainly don't have access to this config unless you have a dedicated or vps server. ASk you hosting provider to give you actual php fpm config

Okay, thank you. We will switch the hosting provider.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...