-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High CPU usage #3027
Comments
Well, I guess this is indeed part of the problem:
But I also get high CPU if I request only CPU and MEM use using the gethomepage.dev glances info widget |
Strange, Glances is now optimzed for CPU consumption (on my PC, it consume ~5% CPU). Can you try this:
|
Then it's between 8-15%, but mostly around 10%. If I remove |
Apart from opening the website, I also tried using the API by using the homepage widget, which doesn't use the |
You can also try to limit the number of processes to display in the WebUI. In the glances.conf file:
Yes for the moment, Glances update all plugins when a call is done to the API (but limited at one update every time). An optimisation can be discussed on this point but it is not straighforward because plugins can be linked (for example processlist and alert). I just open an issue to follow this specific point: #3033 |
Hmm, that doesn't seem to matter very much, it's still around 20%. However your linked issue is what I suspected. As a temporary workaround I now started a separate glances with:
and connected it to my dashboard. It's now working perfectly with 0-3% CPU, and I can still access the cpu-hungry web interface at 61208 :) |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Check the bug
Previous issues were closed as solved
Describe the bug
Instead of <5% CPU Usage, I have around 15-25% CPU usage for glances on a Intel Core i3-8100T (running Proxmox)
To Reproduce
Steps to reproduce the behavior:
/usr/local/bin/glances -w
)Expected behavior
Observe low CPU
Screenshots
Environement (please complete the following information)
Proxmox:
glances_issue.txt
Additional context
I have around 30 LXCs running in proxmox, so the processlist is quite long.
How can I further debug this?
You can also pastebin:
glances.log
The text was updated successfully, but these errors were encountered: