clock-applet memory leak

Conrad Meyer cemeyer at uw.edu
Tue Apr 23 04:25:48 UTC 2013


On Mon, 22 Apr 2013 12:55:00 -0400
Przemek Klosowski <przemek.klosowski at nist.gov> wrote:

> I reported the large memory leak in clock-applet:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=952763
> 
> (TLDR: clock-applet grows by 1GB/day when reporting weather)

Ouch. Until this is fixed, I duct-taped around by adding this
line to cron:

*/5 * * * * /home/conrad/kill_clock_applet_leak.sh

Script:

#!/bin/bash

memused="`ps auxwww|grep clock-ap[p]let | awk '{ print $6 }'`"

if [[ $memused -gt 250000 ]]; then
    memhuman="$((memused/1024))"
    echo "Clock-applet using $memhuman MB, killing panel"
    pkill gnome-panel
fi


It's ugly and dumb, but should prevent run-away stupidity...
(kills at 250MB RSS).

Conrad


More information about the devel mailing list