• 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

Resolved Wordpress (Apache FPM) does not work for High Traffic

Yohann Stasse

New Pleskian
Hello,

I'm a recent user of Plesk. Installed a wordpress site with Apache FPM works fine.

I do load test with Apache Jmeter.
If I ask for a 1000 pages a min, no problem, all pages are served in 700ms. 2% of my CPU, less than 5 % of Bandwidth.

Now If I ask for 3000 pages a min (Which the server can easily do in terms of CPU and bandwidth), the first 10 pages are loaded in 700ms then the next 10 in 1000ms and it keeps escalating, to 2000ms and then 3000ms etc.

It's not because the server doesn't have enough resources, it's because those resources are not being used.

So I added this block to my apache:
<IfModule mpm_prefork_module>
StartServers 4
MinSpareServers 20
MaxSpareServers 40
MaxClients 1000
MaxRequestsPerChild 4500
ServerLimit 1000
</IfModule>

And also changed this in nginx:
worker_processes 20;

Restarted both processes. It changed nothing.

Can someone help with this issue?

Thank you very much.
 
Have you added this block to "Additional Apache directives" or how?
 
Ok found where the problem was:

It is in the php settings of the webspace in :
PHP-FPM settings-> pm.max_children default value is 5.
I put it to 1000, now I can server more than 10000 pages a min in 700 ms.

Thank you.
 
Back
Top