-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Glances CPU usage grows over time #1341
Comments
In the past i have some issues (resolved) with the RAM consumption but never with the CPU. I will make a long perf test on my side. |
Here is my result after a 24 hours test: CPU consumption increases from (+2%) and the RAM from 3 to 17 MB. Do you have the same behavior on your system ? You can also try to reduce the history_size in the Glances.conf file. |
@LrrrAc Have you try to reduce the history_size in the Glances.conf file ? |
How would I go about doing that? |
Same issue for me, I will check if the memory size also increases. |
I also observed an increase of memory consumption ...
|
@jcaude As already said, increase of memory is a default behavor because Glances store all the stats for a couple of hours. If you have a look on yours stats, you can, it did not increase between 3h22 and 8h1. If you want to reduce the memory footprint, change the history_size option in the Glances.conf file |
@LrrrAc Edit your glances configuration file (https://glances.readthedocs.io/en/stable/config.html or https://github.com/nicolargo/glances#docker-the-funny-way for the Docker installation) and change the following line:
to
than restart Glances. |
Thanks and I will set the configuration file accordingly. Still, that doesn’t explain why the cpu usage increase to such extent. |
I have a configuration file, but it was made myself and didn't have a history size option. I added it in, but it hasn't affected anything. The other settings I've used all work. It sends data to influxdb as normal. |
Just figured it out. Replaced the config file I made with the one on the github page and modified the history size and so far at 24 hour it doesnt seem to be increasing at all. Thanks for all the help! |
So I have not growing cpu usage, but when the container I run glances in is started, it can run at either around 100% of a core, or 50% of a core. I can restart it enough times to get either option, but dont understand why it will potentially double its cpu usage for apparently no reason. Ive restarted the container 10 times and so far its a 50/50 chance. @nicolargo |
I use the docker version of glances and love it, but the CPU usage grows over time. I need to restart the containers which then lowers the usage. I have recreated the container to no avail. No other containers do this. This is on Ubuntu 18.04 and the latest docker image of glances. I can upload pictures of the usage, but it just slowly increases until I restart it so it seems unnecessary. Any help would be appreciated.
The text was updated successfully, but these errors were encountered: