Slow WP page loading
I have a client with a 120+ small WordPress sites on it and in the last few weeks page load speeds have gone to 10 sec+.
Here is a Apache Status output on a slow time of day:
- Current Time: Wednesday, 12-Jun-2024 06:26:05 CDT
- Restart Time: Wednesday, 12-Jun-2024 05:44:01 CDT
- Parent Server Config. Generation: 2
- Parent Server MPM Generation: 1
- Server uptime: 42 minutes 4 seconds
- Server load: 4.19 4.16 5.52
- Total accesses: 5425 - Total Traffic: 89.0 MB - Total Duration: 37393487
- CPU Usage: u4.44 s3.23 cu68.27 cs19.32 - 3.77% CPU load
- 2.15 requests/sec - 36.1 kB/second - 16.8 kB/request - 6892.81 ms/request
- 7 requests currently being processed, 0 workers gracefully restarting, 4 idle workers
WW__WW__W.WK.................................................... ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................
-
Hey there! That Apache status looks great, so it isn't going to point us in any direction.
You may want to examine the page itself using your browser's developer tools to see if that points to any specific area causing issues. Details about how to find and use those tools can be found here:
https://www.debugbear.com/blog/devtools-network
You could also check the MySQL status on the server with the "mysqladmin proc status" command to see what the database is doing in real-time.
0 -
Hmm, well I am not sure if this tells you anything, but here is the output of "mysqladmin proc status":
0 -
Thanks for sharing that - that seems like a very busy database server with 270 queries per second. Are you expecting there to be that much action on the machine?
Did you see anything interesting with the browser dev tools?
0 -
Yes, all the lag time is the long wait(even cached) for the main page to load, once it loads everything is ok:
0 -
I'm honestly not sure what would be causing this as we'd need to do some more testing directly on the machine. Could you contact your host to see if they can check the server? If you are a direct licenseholder, feel free to submit a cPanel ticket to us, even though the issue is unlikely related to cPanel.
0 -
Well my client hired someone to look at the server over the weekend and it seems that we had been hitting memory and CPU usage capacity. We are up to 40gb of memory and 8 cores now(about double) with speeds back to the original range of page loading speeds of 1 to 2 seconds.
They did say that PHP-FPM was a large part of the reason why we were seeing slower speeds, anyway we can optimize the PHP-FPM settings for better performance?
0 -
It's always hard to say - one person's optimizations will be terrible settings for another, but if there was a paid admin in there I would have expected them to adjust things as necessary for performance.
We do have some generic information at https://support.cpanel.net/hc/en-us/articles/360036533754-PHP-FPM-Limit-Tuning-Basics-for-Max-Children that will likely be helpful if that is the limit you're hitting. Details on more advanced customization can be found here: https://support.cpanel.net/hc/en-us/articles/1500000370141-How-to-customize-the-pm-setting-in-PHP-FPM
0
Please sign in to leave a comment.
Comments
7 comments