High Cpu Usage & storage almost full.

#1
Hi to all, i am facing these 2 problems.
2 weeks ago the storage of my vps from 40% went almost full.
I am hosting my website on contabo, using Ubuntu 20.04 and cyberpanel .
In the server i have 2 sites (wordpress) in total almost 3gb:
I tried to identify the problem, it seems the storage problem is in the /usr/local/lsws/cachedata is the majority of the used space.
So i deleted the folder and the storage was ok. A week ago same happened so i deleted again the folder.
Today same thing same solution.

During these 2 weeks i am experiencing 100% cpu usage that slows down the entire eshop.

The top processes are:

Clipboard01.jpg

Steps i tried:
Change server, again Contabo but cyberpanel in ubuntu 22 instead of 20, first 3 days the usage was ok but after the problem appeared again.


Everything is default:
1705921582736.png
 
#2
About CPU usage, which version of OLS are you using? They said there was a high CPU usage bug, which is fixed in version 1.17.19.2. If you are using 1.17.19 or 1.17.19.1, it might be the reason.
 
#3
About CPU usage, which version of OLS are you using? They said there was a high CPU usage bug, which is fixed in version 1.17.19.2. If you are using 1.17.19 or 1.17.19.1, it might be the reason.
Hi thank you for your notice, the version was v1.7.18 i made the update today
1706005466394.png

but still i get 100% cpu usage. the only difference is that the storage increasing seems to be fixed, until now only 1% increased.
 

LiteCache

Active Member
#4
I tried to identify the problem, it seems the storage problem is in the /usr/local/lsws/cachedata is the majority of the used space.
So i deleted the folder and the storage was ok. A week ago same happened so i deleted again the folder.
No cached files -> no cache..... If you don't want your page being cached disable the cache.
Regarding high CPU load, check Guest Optimization setting. If this feature is enabled it causes higher load if your pages are not cached yet.

Result: You yourself cause the high load if you always delete the cache files....
 
Last edited:
#5
No cached files -> no cache..... If you don't want your page being cached disable the cache.
Regarding high CPU load, check Guest Optimization setting. If this feature is enabled it causes higher load if your pages are not cached yet.

Result: You yourself cause the high load if you always delete the cache files....
Hi to you, as i mentioned in my 1st message i move to a different server the eshop site in order to be sure that the server wasn't the problem. In the 1st server that i had the eshop the storage space is 100gb (nvme)i never deleted anything, the problem was the the high CPU load that slowed down the eshop. The 2nd server that i am using now has 50gb nvme storage. I mention that storage capacity was almost full because i believe that is linked with the high cpu usage that i am facing. If i am wrong i apologize for that.

As for the guest optimization it is disabled:
1706025885187.png

I also contacted cyberpanel support and they advised me to discuss it in this forum here, because of the lots of lsphp processes.

I forgot to mention the server specs: Both are contabo cloud vps with 4 vCPU Cores and 6 GB RAM. One has 100 GB NVMe and the other 50gb nvme.
 
Last edited:
#6
Today i stopped and started the openlitespeed also i run the configuration errors command:

Code:
root@vmi1371951:~# /usr/local/lsws/bin/openlitespeed -t
2024-01-24 10:09:04.715243 [WARN] [291919] [config:server:vhosts:vhost:Example] Uid of /usr/local/lsws/Example/html/ is 0, smaller than minimum requirement 11, use server uid!
2024-01-24 10:09:04.715314 [WARN] [291919] [config:server:vhosts:vhost:Example] Gid of /usr/local/lsws/Example/html/ is 65534, smaller than minimum requirement 10, use server gid!
2024-01-24 10:09:04.719540 [ERROR] [291919] [config:server:vhosts:vhost:mail.xxx.xx:epsr:ixodo87163469.655340] invalid path - /usr/local/lsws/lsphp73/bin/lsphp, it cannot be started by Web server!
2024-01-24 10:09:04.719577 [ERROR] [291919] [config:server:vhosts:vhost:mail.xxx.xx:scripthandler:add] HttpMime::addMimeHandler getHandler with name ixodo87163469 ret (nil)
2024-01-24 10:09:04.719580 [ERROR] [291919] [config:server:vhosts:vhost:mail.xxx.xx:scripthandler:add] use static file handler for suffix [php]
2024-01-24 10:09:04.720721 [ERROR] [291919] [config:server:vhosts:vhost:mail.panel.xxx.xx:epsr:panel71436819.655340] invalid path - /usr/local/lsws/lsphp73/bin/lsphp, it cannot be started by Web server!
2024-01-24 10:09:04.720777 [ERROR] [291919] [config:server:vhosts:vhost:mail.panel.xxx.xx:scripthandler:add] HttpMime::addMimeHandler getHandler with name panel71436819 ret (nil)
2024-01-24 10:09:04.720782 [ERROR] [291919] [config:server:vhosts:vhost:mail.panel.xxx.xx:scripthandler:add] use static file handler for suffix [php]
2024-01-24 10:09:04.723150 [ERROR] [291919] [config:server:vhosts:vhost:mail.xxx.xx:epsr:sport64986201.655340] invalid path - /usr/local/lsws/lsphp73/bin/lsphp, it cannot be started by Web server!
2024-01-24 10:09:04.723178 [ERROR] [291919] [config:server:vhosts:vhost:mail.xxx.xx:scripthandler:add] HttpMime::addMimeHandler getHandler with name sport64986201 ret (nil)
2024-01-24 10:09:04.723181 [ERROR] [291919] [config:server:vhosts:vhost:mail.xxx.xx:scripthandler:add] use static file handler for suffix [php]
Edit !!!!!!!!!!!!!
Hopeful update:
I changed the php version from 8.1 to 8.2 and it seems that the cpu usage is back to normal and not 100%
I will monitoring the behavior for a couple of days and i will inform if the problem solved.
Thanks for the support
 
Last edited:
Top