• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue PHP-FPM - Sleeping

sjdean

New Pleskian
Server operating system version
Ubuntu 20.04
Plesk version and microupdate number
18.0.51
Seem to have a few problems where it appears that despite all websites being set to their own Dedicated PHP-FPM application served by Apache, when one of the sites locks, it seems to lock all the other websites and we get

Error: upstream timed out (110: Connection timed out) while SSL handshaking to upstream.

This issue occurs in the logs of several of our domains at the same time, I am unable to find a direct root cause. Closest I have found is that one site uses a GuzzleHttp/Curl/HttpClient to read from a remote API, but it appears that sometimes, that connection times out and the PHP-FPM module stays open and sleeping in the background such that we get the error to increase the pm_max_children - which already sits at 100 for the affected website.

Never had this problem on a previous host (Azure App Service).

So I guess how can we prevent PHP-FPM from "Sleeping" in the background and time out safely and correctly in the event of a script failure so that it doesn't lock resources elsewhere?
 
It is not likely that one failing dedicated PHP process can influence others. The symptom can be that no sites are responding, but the cause could be something different. To find out more I suggest to investigate what other PHP-FPM processes are doing in the situation when sites are failing. Are they really stuck? Or are they waiting on something, e.g. name resolution?
 
It looks like the first issue we had was a high CPU usage. Unfortunately atop is not automatically installed out of the box, and we don't get any notifiations anywhere as to the offending process(es) which would be useful.

And don't even get me started on how the free version of the Monitor 360 doesn't give any CPU/Memory monitoring of selected websites like the inbuilt monitoring which can no longer be accessed after enabling Monitor 360.

We've enabled atop and will need to monitor further.

However the second issue still exists in multiple PHP-FPM applications being spawned when GuzzleHttp/Curl is unable to connect to a remote API. I realise this is more PHP orientated than Plesk, but alas, I'm unable to locate an appropriate setting to resolve this
 
Back
Top