Page 1 of 1

Memory Leak in mintupdate discovered

Posted: Sun May 29, 2011 8:41 am
by demilord
I noticed a memory leak in mintupdate applet.
Everytime it checks forupdates it increases with 100 till 200 KB, but it doesnt release the memory... I noticed it in System Monitor.
I dont know where to report it..
you can simlulate it with hitting refresh everytime and look at the System Monitor, the memory usage increases...
Also found out when doing the mintupdate program itself it doesnt release memory also

Running Linux Mint 11
mintUpdate 4.3.1

Re: Memory Leak in mintupdate discovered

Posted: Sun May 29, 2011 11:01 am
by remoulder

Re: Memory Leak in mintupdate discovered

Posted: Sun May 29, 2011 11:10 am
by AdamS
Just a little thought.

Update stays in the Notification area till you right click on it and close it. It then releases the memory used.

As long as it is in the notification area, resources used will continue to be used. Until closed completely out and not just minimized.

Re: Memory Leak in mintupdate discovered

Posted: Sun Jun 05, 2011 2:02 pm
by demilord
Hereby I speak about the applet, and not about the program itself, I didn't touch mintupdate program , All I did was rightclick the notification icon and hit check update, to make it increase the process with 200KB a time.

Re: Memory Leak in mintupdate discovered

Posted: Mon Jun 06, 2011 6:04 pm
by karashata
The notification icon is part of the program itself, it's not an applet. Ergo, what's been said still applies; The program will continue to use resources until it's completely closed and not just running in the background, hidden in the system tray.

Re: Memory Leak in mintupdate discovered

Posted: Mon Jun 06, 2011 6:17 pm
by HorrorCode
Maybe the correct sollution for this would be for mint update to, one finished, kill itself and respawn, freeing up that wasted ram.

Re: Memory Leak in mintupdate discovered

Posted: Mon Jun 06, 2011 6:54 pm
by karashata
HorrorCode wrote:Maybe the correct sollution for this would be for mint update to, one finished, kill itself and respawn, freeing up that wasted ram.
I'm not sure 200kb is really that significant amount of RAM that it absolutely *must* be freed no matter what.

Mind you, I'm also running a system with 4 GB of RAM installed and I rarely begin to approach 1.5 GB actually in use, so 200 KB really seems insignificant to me. On a system with 256 MB or even 512 MB of RAM I suppose that 200 KB might be a little more useful.

Re: Memory Leak in mintupdate discovered

Posted: Mon Jun 06, 2011 7:25 pm
by HorrorCode
you do have a point there, i have 4 and im sure i never would have noticed it, but those with less ram surely will.

on another note, there is always a chance that a memory leak could expand or cause the whole pc or other apps to have erratic behavior including data loss, so whether or not it is a leak should be investigated.