cancel
Showing results for 
Search instead for 
Did you mean: 

PHP-FPM high number of connections

PHP-FPM high number of connections

Hello Everyone,

 

Our website is running on magento2 backed with Nginx/Php-fpm7.2. We're experiencing intermittent site crash issues due to the high number of php-fpm processes. Although traffic on site is not much (max 10-12 realtime users) but number of php-fpm processes sometimes exceeds 80.

When we inspected the process with lsof command, we found that most of the php-fpm requests are pointing to cache directory, a sample is mentioned below:

 

/domain/var/cache/mage-tags/mage---dd8_CAT_P

 

To us, this should be served by the frontend(nginx) instead of the backend(php-fpm). Do we need some modification in nginx configuration or these requests supposed to be served by php-fpm?

 

Thanks in advance!


Regards.

2 REPLIES 2

Re: PHP-FPM high number of connections

@shahzaib_mushta can you share your full nginx configuration including your php-fpm upstream configuration for us?

 

Make sure to remove any personal data like IP addresses, Passwords, Identifiable Directories etc.

--
Problem solved? Click Accept as Solution!

Re: PHP-FPM high number of connections

Hi,

 

Thanks for the response. Somehow the Magento cache got disabled due to which load went sky high. After enabling the cache, the load is back to a stable state.

 

Thanks Smiley Happy