Multiple lsphp with high CPU usage

#1
Hello,
I am having two servers with OpenLitespeed. One has many websites and has only reasonable CPU usage. Other has only one website but multiple lsphp and taking almost 100% CPU all the time. I have reinstalled everything and still having the same issue. What can I do here to fix?
1662795012165.png
 
#3
Hello,
Thank you for your reply. I use WordPress. The thing is that when I use the website on a different subdomain, it works okayish. But when I move to main domain, the entire CPU spikes with lsphp processes. I used Litespeed cache. Not sure what is causing the issue. Can using CDN reduce the load on CPU?

If you would like to visit the website, here it is.
https://aidanglobal.com

Thank you.
 

Cold-Egg

Administrator
#4
The cache seems working correctly. LSCache will be based on the URL, so, when you switch the URL, all cached files will be invalidated, that's why you saw the CPU spikes.
 

dens

New Member
#5
I am having the same problem with my website https://doorwood.ua Screenshot 2022-11-29 at 02.48.20.png
Maybe someone can help me with advice?
The fact is that there are several sites on my server, but this site creates the biggest load on the server.
Screenshot 2022-11-29 at 03.34.24.png
 
Last edited:
#6

dens

New Member
#8
Hi @dens, for this shopping site, I'd recommend you to enable LSCache (https://docs.litespeedtech.com/lscache/lscwp/) to reduce the PHP and DB load.
No matter how strange it is, in this situation it helped me that I, on the contrary, disabled the caching plugin LSCache. With a certain periodicity, the load on the server was so great that other sites located on this server went down and issued a 503 error, that is, they were unavailable. I had to constantly hard reboot the server. This can be seen in this CPU graph over the course of 2 weeks. It is possible that the caching plugin itself has some kind of error, or the settings are based on the power of my server. It seems that caching should reduce the load on the server and the database, and not the other way around. Screenshot 2022-11-30 at 12.02.21.png
Screenshot 2022-11-30 at 12.10.44.png
 
Top