Hello Community,
My ERPNext hosted on Hostinger VPS.
The CPU usage gone on 787% on every second or third day.
I’m doing manually kill the processes and then usage reduce.
According to this topic
If you look in this screenshot, you can see that the swap is completely full even though you have plenty of ram left over. either disable swap or reduce swappiness to 10.
use
cat /proc/sys/vm/swappiness to check present swappiness and sudo sysctl vm.swappiness=20 to reduce it to 20.
A swappiness of 60 means that your system starts swapping when your ram is 40% full.
A swappiness of 20 means that your system starts swapping when your ram is 80% full.
I have set the swappiness but it is not working for me.
@NCP Need your guidance
its better if you can give additional details such as version and the general load factors. Total Users etc. Do you think if a specific action is triggering such an event etc.
Here below is the version details.
ERPNext: v14.33.1 (version-14)
Frappe Framework: v14.43.0 (version-14)
Frappe HR: v14.9.0 (version-14)
Payments: v0.0.1 (develop)
this process ./kswapd0 running any time.
hi
There is a high probability its a malware…
Looking at the htop… you don’t have a swap configured … its at 0 K ??
Secondly VIRT, RES and SHR are non zero… if the swapd was a kernal processs… it would be Zero… however it is not in this case
Could you also run
sudo find /home -name kswapd0
@NCP
Need your guidance.
how to fix this issue permanently.