• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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