• 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

Question Wordpress-Woocommerce slow on VPS 8GB ram and 4 core cpu

malware

New Pleskian
Server operating system version
CentOS Linux 7.9.2009 (Core)
Plesk version and microupdate number
Plesk Obsidian 18.0.48
Hi guys,

Our company each wednesday evening has got a peak of visits (we are live on social to introduce new products) and the site is so slow and go on 502 and 504 error.
I can't understand if the cause is a server configuration or too visits for server

Following my server info during the issue.

This is my PHP configuration:
- PHP 7.4.33
- FPM application served by NGINX
- Memory limit 128MB
- max_execution_time 60
- pm.max_children 30
- pm.max_requests defaults
- pm on demand
- nginx settings Proxy mode activated

Server configuration:
OS: CentOS Linux 7.9.2009 (Core)
Product: Plesk Obsidian 18.0.48
IP Address Banning: On
ModSecurity: On
CPU Intel(R) Xeon(R) CPU E5-2650L v4 @ 1.70GHz (4 core(s))
Version Plesk Obsidian v18.0.48_build1800221104.03 os_CentOS 7
OS CentOS Linux 7.9.2009 (Core)
Key number PLSK.08427617.0014
System Uptime: 280 day(s) 14:08

CPU / Memory / Swap usage:
CPU usage
Last 1 minute 33.39
Last 5 minutes 32.76
Last 15 minutes 29.08
usage.png

Top comand:
top.png

I noticed that using FPM application served by Apache the site seems to be less slow. But... Nginx should be faster that Apache, right?
Furthermore I don't see CPU and RAM working on 100%, so I don't understand.
During server issues there are not backup running.

Can anyone suggest me what else can I check to find the issue?

Thank you so much!
 
I checked cpu usage from my cloud hosting and the cpu result to be used for 100% during last two hours. This is different from Plesk panel.
 
You reach maximal load when the loadavg (the number of processes currently waiting) reaches the number of cores. This means your CPU is waaay overbooked.
Are those cores real cores or is hyperthreading enabled on the host?
If you're essentially dDoS'ing your own server with those social media releases, you'll probably need to look into varnish. That's difficult to integrate with plesk, though.
 
Thank you Mow.

No, live streams are on social, this hasn’t effects on our server.
The server works only for woocommerce qhen customer place orders.

Cores are vcore. We are using a VPS.
 
Why so many copies of php-fpm for the same user? Could they be waiting for something in common, appears deadlocked from the 'top' you shared.
Btw, it could be that PHP/Wordpress issue someone else raised on another recent thread.. Apparently it's slow with PHP 7.4 but fast with PHP 7.3?
 
I have the same problem also with 7.3

Regarding the Php-fpm process, does the server generate a php-fpm process for each visit?
 
Back
Top