gkrellm has a memory leak

Bug #325345 reported by bulltza
2
Affects Status Importance Assigned to Milestone
gkrellm (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: gkrellm

I am using gkrellm 2.3.1-1ubuntu2 in Ubuntu Hardy 8.04

I have had ubuntu running for a month and I had to reboot the computer every 7 days because I was getting out of memory RAM after 7 days. I had been monitoring with ps aux and the only software using more and more memory ram every day is gkrellm. I am attaching 1 files with the graph of my memory ram (calculated with the command $(free|grep Mem:|awk '{print ($3-$6-$7)/$2*100;}')): As you can see in the graph I rebooted the system the 29th of january and the 30th I swiched on some programs and I left the computer running non stop. The 3th of february I arrived home again and you can see how there is a trend of usage of the memory ram. Then I did a couple of things (switch on torrents and watch a movie etc) and that is why there is a spike that day but you can ignore that part, only the trend is important.

2- ps aux after I left the house
<code>
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
franky 6265 6.5 2.2 28544 11552 ? S 23:47 0:01 gkrellm
</code>

3- ps aux when I arrived home 5 days later
<code>
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
franky 6265 3.8 7.9 58508 40532 ? S Jan29 259:13 gkrellm
</code>

Only gkrellm seems to be growing up (nautilus also did but only 0.1% the rest was all the same) and I just killed it and look for anything in internet and report it here, after killing it it seems I recovered my lost 8% RAM

It is not a very important memory leak, about almost 10% of my 512mb of ram over 5 days, but it is annoying in my server and I have been using gkrellm since I was born in linux some years ago. Taking it out from my server is a big pity.

I had similar graphs of my server in 7.10 and in 6 months I had no memory leaks and I was using gkrellm aswell.

I have probably found the reason of the memory leak in google, have a look here http://www.nabble.com/-patch--memory-leak-td16410788.html

I dont have any themes or plugins customised that were not in the repository of Hardy, here is what I have installed: (from aptitude)
<code>
i gkrellm - The GNU Krell Monitors
p gkrellm-alltraxclock - analog clock plugin for GKrellM
p gkrellm-bfm - system load plugin for gkrellm with a duck
v gkrellm-common -
i gkrellm-hdplop - A hard drive activity monitor GKrellM plugin
p gkrellm-i8k - Dell Inspiron and Latitude module for GKrellM2 (i8krellm)
i gkrellm-ibam - Advanced battery monitor for laptops - gkrellm plugin
i gkrellm-leds - Keyboard LED monitor for GKrellM
p gkrellm-mailwatch - GKrellM plugin to watch mailboxes in multiple panels
p gkrellm-mldonkey - mldonkey plugin for gkrellm2
p gkrellm-radio - FM radio tuner for GKrellM
p gkrellm-reminder - useful reminder plugin for gkrellm
p gkrellm-snmp - snmp plug-in for GKrellM
p gkrellm-volume - A mixer plugin for GKrellM
i gkrellm-x86info - gkrellm plugin displaying the current processor speed
p gkrellmapcupsd - gkrellm plugin displaying the current processor speed
p gkrellmd - The GNU Krell Monitors Server
p gkrellmitime - Internet time plugin for gkrellm
p gkrellmoon - Gkrellm Moon Clock Plugin
p gkrellmss - Plugin for GKrellM that has a VU meter and a chart
p gkrellmwho2 - who plugin for gkrellm2
p gkrellmwireless - 802.11 wireless link monitor plugin for GKrellM
</code>

My configuration file is
<code>
### GKrellM user config. Auto written, do not edit (usually) ###
### Version 2.3.1 ###
enable_hostname 1
hostname_short 0
enable_sysname 1
mbmon_port 0
sticky_state 1
dock_type 0
decorated 0
skip_taskbar 1
skip_pager 1
above 0
below 0
track_gtk_theme_name 0
default_track_theme "Default"
save_position 1
chart_width 60
update_HZ 10
allow_multiple_instances 0
float_factor 1000
hostname sysname_mode 0
clock_cal clock_launch
clock_cal clock_tooltip
clock_cal cal_launch
clock_cal cal_tooltip
clock_cal hour_chime_command
clock_cal quarter_chime_command
clock_cal loop_chime_enable 0
clock_cal clock_options 1
clock_cal cal_options 1
clock_cal cal_format %a <span foreground="$A"><big><big>%e</big></big></span> %b
clock_cal clock_format %l:%M <span foreground="$A"><small>%S</small></span>
gkhdplop options 0 0 0 33 0 0 0,000000 smallfont=Vera/7 bigfont=Arial_Black/10
cpu extra_info cpu 1
cpu chart_config cpu 40 20 0 0 0 0 : 0 0 0 0 500 : 0 0 0 0 500 : 0 0 0 0 500
cpu enable 1
cpu smp_mode 0
cpu omit_nice_mode 0
cpu config_tracking 0
cpu sensor_mode 0
cpu text_format $T
proc enable 1 1
proc launch
proc tooltip_comment
proc sensor_mode 0
proc text_format \w88\a$p\f procs\n\e$u\f users
proc chart_config 40 100 0 0 0 0 : 1 0 0 0 500 : 0 0 0 0 500
disk assign_method 2
disk device Disk 0 0 0 1 1 0 0
disk chart_config Disk 40 2000000 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500
disk device sda 0 0 11 0 1 -1 0
disk chart_config sda 40 2000 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500
disk device sda1 0 0 11 0 1 1 0
disk device sda3 0 0 11 0 1 3 0
disk device sda4 0 0 11 0 1 4 0
disk device sdb 0 0 11 0 1 -1 0
disk device sdb1 0 0 11 0 1 1 0
disk device sdc 0 0 11 0 1 -1 0
disk device sdc1 0 0 11 0 1 1 0
disk device sr0 0 0 14 0 1 -1 0
disk text_format $T
inet text_format all \t$a\f $l\N$A\f $L
inet update_interval all 1
net enables ath59 1 1 0
net enables eth1 1 1 0
net chart_config eth1 40 150000 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500
net enables lo 0 1 0
net enables ppp0 1 1 0
net chart_config ppp0 40 2000 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500
net enables wifi0 1 1 0
net timer_enabled 1
net timer_seconds 1
net timer_iface ppp0
net timer_on
net timer_off
net text_format $T\b\c\f$L
net reset_mday 1
net net_stats_window_height 200
meminfo mem_meter 1 0 0
meminfo swap_meter 1 0
meminfo swap_chart 0 1
meminfo mem_launch
meminfo mem_tooltip
meminfo mem_data_format $t - $f libre
meminfo swap_launch
meminfo swap_tooltip
meminfo swap_data_format $t - $f libre
meminfo text_format $T
fs "/" / 0 0 0 0 0
fs "ssd" /media/disk 0 0 0 0 0
fs "hdd" /media/frankyhcc 0 0 0 0 0
fs fs_check_timeout 2
fs nfs_check_timeout 16
fs auto_eject 0
fs binary_units 0
fs data_format $t - $f libre
mail mailbox-local mbox /var/mail/franky
mail mua
mail notify
mail fetch_command
mail remote_check_timeout 5
mail local_check_timeout 4
mail fetch_check_is_local 0
mail msg_count_mode 0
mail animation_select_mode 3
mail fetch_check_only_mode 0
mail reset_remote_mode 0
mail unseen_is_new 0
mail enable 1 0 0 0
mail animation_continuous 0
mail show_tooltip 1
mail mh_seq_ignore 0
battery enable 1
battery enable_composite 1
battery estimate_time 1
battery estimate_time_discharge 1500
battery estimate_time_charge 3000
battery estimate_time_charge_model 0
battery full_cap_fallback 5000
battery poll_interval 5
battery launch1
battery tooltip_comment
battery alert_units_percent 0
battery display_mode 0 0
gkleds_plugin margin 2 2 2 0
gkleds_plugin size 0 0
gkleds_plugin pm_idx 6 0 7 0 6 1 7 1 6 2 7 2
gkleds_plugin order 1 2 3
gkleds_plugin mb_panel 0
uptime enable 1
uptime launch
uptime tooltip
</code>

It is my first bug report, I hope everything is clear, please update the gkrellm package with the patch I posted and lets see if that solves the problem.

Revision history for this message
bulltza (bultzaweb) wrote :
description: updated
Revision history for this message
Kerry Hall (kerryhall) wrote :

I have the same problem. Same version of gkrellm, same version of Ubuntu. I left my web server running for a few weeks, I come back to check on it, and to my horror it is so sluggish that it takes minutes just to log in. gkrellm was the culprit, taking up nearly 400 mb of ram!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.