YATB (Yet Another Tech Blog)

There seems to be a bug with gaim 1.5.1 on ubuntu 6.06. While using gaim, gaim continues to chew up main memory by spawning multiple instances of gaim- each of which takes up about 12Meg of memory. These new processes seem to be dead on arrival. I put together a quickie script to kill em before they drag down the rest of ubuntu to a crawl. Here’s a script to contain this bug:
Put the following into a script like killgaim.sh:

while :<br />
do<br />
ps -efl | grep gaim | grep snd_pc | cut -c 14-19 | tee x<br />
nawk -f d.awk x  > x.cmd<br />
chmod +x x.cmd<br />
x.cmd<br />
sleep 60<br />
done</p>
<p>

Put the following into d.awk:

</p>
<p>{ printf( "kill -9 %i\n", $1 ); }</p>
<p>

The script checks for any run-away gaim processes every minute- and if found, wipes them out.  This should work until the gaim developers supply a fix.

Read more...

§7 · September 8, 2006 · Awk, Linux, Ubuntu · Comments Off ·