jorchube / monitorets

GNU General Public License v3.0
107 stars 7 forks source link

Closes unexpectedly - probable memory leak / possibly high CPU usage (1.5%) #85

Open screwdog opened 1 year ago

screwdog commented 1 year ago

Program closes randomly after about a few days of usage. Checking journalctl shows messages suggesting a memory leak.

For hours before the program closes we get the following message about 20 times per second:

Apr 03 05:59:49 [...] monitorets[1581024]: could not allocate closure

And then the following messages at close:

Apr 03 09:50:17 [...] io.github.jorchube.monitorets.desktop[1581024]: ***MEMORY-ERROR***: monitorets[2]: GSlice: failed to allocate 1008 bytes (alignment: 1024): Cannot allocate memory
Apr 03 09:50:17 [...] systemd[4195]: app-flatpak-io.github.jorchube.monitorets-1581014.scope: Consumed 2h 8min 37.819s CPU time.

Note also that the program has surprisingly high CPU usage. From top:

%CPU  %MEM     TIME+ COMMAND                                                                                                
 [...]                                                                                     
 19.7   3.3 465:38.21 gnome-shell                                                                                            
 13.1   2.1  17:53.79 monitorets

Resource usage is comparable to gnome-shell and gross memory usage seems to be increasing by about 300kb per second.


OS: Pop!_OS 22.04 LTS GNOME: 42.5

jorchube commented 1 year ago

Hi!

Thank you for reporting this. Can you give more logs around the entry with the MEMORY-ERROR one?

You can execute journalctl -t io.github.jorchube.monitorets.desktop to show only logs from the application itself.