• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Issue Troubleshooting high memory usage of Apache & PHP-FPM

elbobo

New Pleskian
Server operating system version
Debian 11.9
Plesk version and microupdate number
Plesk Obsidian v18.0.57_build1800231218.09 os_Debian 11.0
Hello!

I have Plesk Obsidian 18.0.57 Web Pro Edition installed on a VM with 8 GB of RAM and I am currently hosting 26 domains. During the last month I am having outages because of high memory utilization from Apache and PHP-FPM according to Plesk's messages and sometimes even the server reboots.

How can I go about to find the root cause?
What I would like to do is first get statistics of every domains consumption for a small period of time, then find how much the total memory consumption from all domains as a percentage of the whole memory and then perhaps start to limit memory consumption for specific domains.
 
Are you able to SSH or login to Plesk while the incidents are occurring or is this an "after hours" type of scenario each time?
 
Have you tried to upgrade Plesk? You cloud also try to upgrade the OS but first you have to update to the latest Plesk version
Bash:
plesk installer upgrade plesk stable
https://support.plesk.com/hc/en-us/...-upgrade-procedure-on-Linux-server-with-Plesk
In case this related to an high amount of traffic, have you tried to use nginx caching?
You could watch your logs or use "btop" to see whats going on.
Bash:
tail -f /var/www/vhosts/*/logs/*log

Maybe you want to try a dedicated PHP handler, you could isolate the process better.

 
Back
Top