glances icon indicating copy to clipboard operation
glances copied to clipboard

Memory leak ?

Open Artur2 opened this issue 3 years ago • 2 comments

Describe the bug Memory consumption is too high, like for firefox process, but firefox is web browser

To Reproduce Steps to reproduce the behavior:

  1. Simple Start glances
  2. Wait for 1 or 2 days of actively machine usage
  3. 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

Artur2 avatar Feb 15 '22 01:02 Artur2

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).

nicolargo avatar Feb 19 '22 08:02 nicolargo

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:

image

It starts at around 60Mb but has risen to as much as 1.4Gb.

Nuuki9 avatar Aug 25 '22 09:08 Nuuki9

Linked with issue https://github.com/nicolargo/glances/issues/1447

nicolargo avatar Nov 16 '22 08:11 nicolargo