Comment 41 for bug 569273

Revision history for this message
Simon B (simonbrewerau) wrote : Re: memory leak in gnome-power-manager on lucid

Hi Sebastien,

I use the command in comment #1:

watch -n1 'grep heap -A11 /proc/$( pidof gnome-power-manager )/smaps'

The heap of gnome-power-manager grows by 4kB every second (in my case). If I take out the battery from my laptop, the memory leak stops.

On my machine upowerd is sending some sort of battery message over dbus roughly once per second. gnome-power-manager
is calling app_indicator_set_menu() every second which uses more heap memory each time. I am not sure
why the heap is not freed since I have not had time to figure how application indicators work. I suspect that gnome-power-manager has not been patched correctly to use application indicators but have no proof.

Simon