Why is my linode constantly at 100% cpu usage?
My linode graph has been showing 100% cpu usage or close to it for the past 2 or 3 hours. I had a websocket server written in cpp running with pm2. pm2 however said it was using 0-3% cpu. I ended up stopping all pm2 processes to see if the issue would persist and it did. I tried htop, which showed 3% cpu usage from the whole system. iostat 1 10
shows 100% 93-100% idle cpu usage. I have certbot and nginx installed. But those don't show in htop as any high cpu usage if any. Ive rebooted 3 times and shutdown once for about 30 seconds, and the issue still persists and the OS seems completely blind to the amount of cpu being used.
2 Replies
I started using longview
and got much better results with accurate CPU usage data. But should I be worried that the default graph is showing 100%? Will this effect any pricing etc.?
I started using longview and got much better results with accurate CPU usage data.
Longview records stats from within the guest OS, the standard Linode graphs are reported by the host machine, which cannot see inside your VM.
I’m not sure why the host is seeing 100% usage, someone from Linode may be able to offer some reasons.
Will this effect any pricing etc.?
Linode do not price based on usage so no it wouldn’t do. The only slight issue might be false positive “high CPU usage” alerts if you have them configured.