i wanted to know why the load increases when we hit publish/edit/update ??
I have tried optimizing the database, re-installing of wordpress, removing all unwanted entries in database but does not effect, but the high cpu on publish still remains as long as do any operation in WP admin, the CPU utilization will increase
If there is some expert advise i shall be thankful
What are your server specs, and can you run top using ssh.
4core 4ram load average is usually 1.0 ~ 2.5
But when I publish an article in WordPress, CPU load average up to 8.0 ~ 15, sometimes it is higher enough. When I don’t operate on WordPress for a while, it will return to normal
Top using sees multiple lsphp processes using higher CPU utilization
Is this happening on only one site, how busy is your site and are you running latest php. Though this sounds like a mysql issue, do you have many posts on your wordpress installation?
There is quite a large number of users if its real time, i strongly suggest using lscache and use redis for object caching. It will definitely help with the issue that you are having. Even if you do not want to use a caching frontend, the object caching function will help by storing expensive calls to your database and retrieve queries from redis instead of accessing your database directly.
There is quite a large number of users if its real time, i strongly suggest using lscache and use redis for object caching. It will definitely help with the issue that you are having. Even if you do not want to use a caching frontend, the object caching function will help by storing expensive calls to your database and retrieve queries from redis instead of accessing your database directly.
Okay, I will try Thank you very much for your help!
There is quite a large number of users if its real time, i strongly suggest using lscache and use redis for object caching. It will definitely help with the issue that you are having. Even if you do not want to use a caching frontend, the object caching function will help by storing expensive calls to your database and retrieve queries from redis instead of accessing your database directly.
After a few days of testing, it’s really obvious to improve the problem. Thank you again for your help! (^u^)
I’ve seen this issue on popular sites with lots of posts and visitors even when fully optimized. What happens is that all your cache is being rebuilt every time something is published and things get a tad nuts due to this.
The solution is usually to ensure your setup to use Redis/Memcached and set up Litespeed ESI(Edge Side Includes) in the Litespeed Cache plugin. I typically recommend Memcached but that’s just what I’m used to. Redis I hear is pretty amazing too but not have as much experience with that.
Reference links:
This also happens with sites with widgets and sidebars with ads. You will want to set it up so these are excluded from being cached as they change frequently with stuff like adwords etc and this will cause tons of CPU use due to queries and rebuilding cache.