glances
glances copied to clipboard
Memory leak ?
Describe the bug Memory consumption is too high, like for firefox process, but firefox is web browser
To Reproduce Steps to reproduce the behavior:
- Simple Start glances
- Wait for 1 or 2 days of actively machine usage
- See in glances process started by python with consumption about 200-300mb memory
Expected behavior Consumption about 50mb or less
Desktop:
- OS: Mac OS X Monterey 12.2
- Glances v3.1.7 with PsUtil v5.8.0
Later I'll provide screenshots of running processes in glances So you can see amount of memory, consuming by glances process
Link for screenshots Look at reserved memory of glances process
https://imgur.com/a/X1MZ5Lb
Memory consumption has been improved in Glances 3.2. Please upgrade and test again.
For your information, the first day Glances is ran, memory will increase because it stores the stats with a sliding window of 24h (see https://github.com/nicolargo/glances/blob/v3.1.7/conf/glances.conf#L10).
I'm seeing what appears to be an ongoing memory leak, running the latest version.
Here's the memory usage of my Glances container over the last few months:

It starts at around 60Mb but has risen to as much as 1.4Gb.
Linked with issue https://github.com/nicolargo/glances/issues/1447