xfce4-netload-plugin "grows" in memory

I tried searching, but couldn't find anything, so here is a question: has anyone else noticed that the latest versions of xfce4-netload-plugin "grows" in memory over time? (I'm talking about the "SIZE" column in the output of 'top') After a week or two, it has grown from about 150 MB to almost one gigabyte in size.

I'm running xfce4-netload-plugin-1.0.0_1 on
Code:
tingo@kg-v2$ uname -a
FreeBSD kg-v2.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #4: Sat Jul 16 02:07:14 CEST 2011
     root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
I have noticed the same behavior with the xfce4-systemload-plugin.
 
That's most likely a memory leak. It would have to be fixed upstream.
 
Yes. Unfortunately, I haven't found anything about it. Thus I am looking for other people who experience the same, to collect more info.
 
SirDice said:
That's most likely a memory leak. It would have to be fixed upstream.

Interesting though, my laptop also runs Xfce 4.8 (Xubuntu) and doesn't have this memory leak problem.
Update: scratch that, the laptop runs xubuntu 10.10 and Xfce 4.6.2
 
Ha! And I thought it was only me. I used that xfce plugin too, in fact I've seen this also on sysutils/xfce4-cpugraph-plugin. Basically these two plugins consume memory in the course of a few days. I've a few other plugins but they don't behave this way.

The current version of my XFCE ports are:
Code:
gtk-xfce-engine-2.9.0 An Xfce engine for GTK 2.0
libxfce4gui-4.8.1   Xfce 4 widget library required by Xfce4 and Xfwm4
libxfce4menu-4.8.1  Xfce 4 library for a freedesktop.org compliant menu impleme
libxfce4util-4.8.2  Xfce 4 library with non-graphical helper functions
xfce-4.8            The "meta-port" for the Xfce 4 desktop environment
xfce4-appfinder-4.8.0_1 Find application in the system supporting Desktop entry for
xfce4-conf-4.8.1    Xfce 4 configuration mananger
xfce4-cpugraph-plugin-1.0.1_3 Xfce4 systemload plugin with multiple CPU display modes
xfce4-desktop-4.8.3 Xfce 4 desktop background manager and root menu
xfce4-mixer-4.8.0   Xfce 4 volume mixer module for xfce4-panel
xfce4-panel-4.8.6   Xfce 4 panel module
xfce4-print-4.6.1_7 Xfce 4 graphical frontend for printing
xfce4-session-4.8.3 Session manager for the Xfce 4 desktop environment
xfce4-settings-4.8.3 Xfce 4 settings application
xfce4-systemload-plugin-1.0.0_2 System Load plugin for XFce4
xfce4-tumbler-0.1.23 Thumbnail service for Xfce desktop
xfce4-utils-4.8.3_2 Xfce 4 essential utilities and scripts
xfce4-weather-plugin-0.7.4_1 Xfce 4 weather module for xfce4-panel
xfce4-wm-4.8.3      Xfce 4 window manager
xfce4-wm-themes-4.6.0_1 Xfce 4 window decoration themes for xfwm4

This is on FreeBSD-9.0-RELEASE/amd64.
 
tingo said:
Interesting though, my laptop also runs Xfce 4.8 (Xubuntu) and doesn't have this memory leak problem.
Update: scratch that, the laptop runs xubuntu 10.10 and Xfce 4.6.2

I have now upgraded the laptop to Xubuntu 12.04, which runs Xfce 4.8. In a few days more, I will know if these plugins have a memory leak there.
 
tingo said:
I have now upgraded the laptop to Xubuntu 12.04, which runs Xfce 4.8. In a few days more, I will know if these plugins have a memory leak there.

Ok, this just in: on my laptop, running Xubuntu 12.04 (and Xfce 4.8) sysutils/xfce4-netload-plugin and sysutils/xfce4-systemload-plugin do not have a memory leak. Each uses 154MB of VIRT size (that is what top in Linux calls it) memory, no matter how many weeks the laptop is running. So it seems like this memory leak is a FreeBSD "feature".
 
olivierd said:
Which Gtk Engine are you using ?
How do I tell?
I guess I am using whatever is default for Xfce - I haven't changed anything that I know of.
This is what I have installed:
Code:
root@kg-v2# portversion -v | grep engine
gtk-engines2-2.20.2_1       =  up-to-date with port 
gtk-xfce-engine-3.0.0_1     =  up-to-date with port 
qt4-iconengines-4.8.2       =  up-to-date with port

olivierd said:
I will try the patch.
 
Preliminary tests (only two days) on two different machines says that the patch works. Unfortunately I'll have to shutdown and move the machines today. More results late next week.
 
Ok, one of my machines has now been running for a bit six days, with this patch. All programs in question (xfce4-netload-plugin, xfce4-systemload-plugin and xfce4-cpugraph-plugin) are below 100 megabytes in size.
So, from my point of view, this patch is a success. Well done! :-)
 
Back
Top