• 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 Unresponsive issues with server

cguanaja

New Pleskian
Server operating system version
Ubuntu 20.04.6 LTS
Plesk version and microupdate number
Plesk Obsidian 18.0.51 Update #1
Hi community,

I've been having some ongoing issues with below two recurring messages:
- The threshold of Apache & PHP-FPM memory usage has been exceeded
- The swap usage threshold has been exceeded

I've also checked below URL's:
- Issue - The threshold of Apache & PHP-FPM memory usage has been exceeded
- Issue - Apache & PHP-FPM Memory Usage Growing Exponentially - tail commands give no output on affected server on my end
- Issue - Swap Usage Threshold Exceeded

I've left atop service running a while back which may have been causing the web host to exponentially be unresponsive, I was not even able to login via SSH and being forced to restart the AWS instance. Upon checking the top command now I see there are services that come every now and then from each domain with admin user for each domain and in relation to a "php-fpm: pool domain-name" command, and these a lot of memory.

I'm leaving the atop service stopped - is this how it should be left so it won't cause any memory/swap usage hiccups? Screenshot
What else can I check so this "exponential" memory/swap usage does not cause server unresponsiveness?

I look forward to your input.

Thanks!
 
One ore more websites are creating long running PHP-FPM processes. Some basic configurations can already help limiting the CPU use: Decrease the PHP timeout values of your website configurations to something low like 10 seconds and limit the number of concurrent children to a low number like 10.

Make sure to look into access_ssl_log and error_log files of the affected websites that consume the most CPU time to find out more on the reason. Often bad bots are hitting a site. Enable the Fail2Ban BadBot jail and maybe implement additional bad bot protection. Some guides:
and others.
 
Thanks for your input @Peter Debik - changed both max_execution_time and max_input_time - set both to default values for PHP.

I saw below error before/after doing changes - and before I go through the URL provided, what errors might be causing this on the Plesk host?

New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] bind() to [2600:1f14:fc4:1600:1663:41fc:f969:d3a3]:443 failed (99: Cannot assign requested address) nginx: configuration file /etc/nginx/nginx.conf test failed. To fix the issue, follow the instructions described in KB: https://support.plesk.com/hc/articles/213933865

Many thanks.
 
Thanks @Peter Debik - I checked but I don't get the IP address marked as broken so I don't get the option to repair it - strange.

Refreshed browser and error on dashboard is still there.

Thanks.
 
Any further input here please? I've had to reload instances twice so far.

I get these messages:
The swap usage status is critical!
The threshold of Apache & PHP-FPM memory usage has been exceeded

I loose connectivity to the host even via SSH, and every time I reload the instance it goes back to normal which is not optimal.

What might be causing this?

Thanks.
 
Hi,

I had this situation as well, already a few months ago. May I ask you: Do you use nginx as layer 1/proxy and apache then for processing PHP?
If so, I'd suggest to try it without nginx. In our case nginx+apache combination caused this issue.

best,
manni
 
Hi @manni - thanks so much for your reply. I've checked and all Common Apache settings are set to default, and the following nginx settings are enabled:
Proxy mode and Smart static files processing.

This applies to all domains - are you saying that disabling "proxy mode" under nginx settings for all domains can help?

Many thanks.
 
Back
Top