[Greasemonkey] Re: Memory Leaks

Andre gm at andrecgn.de
Wed Nov 9 14:13:35 EST 2005


From: Andrew Murphy <andrewm1986 at gmail.com>
Sent: Mittwoch, 9. November 2005 13:53:49
Subject: Memory Leaks
> My memory usage can reach 200MB before firefox is so slow I have to open and
> close it again!
> 

I have found that kicking off my script by the "onload" event creates a 
much bigger memory leak that just calling it.

Fortunately, my script can run ever before the event fires, so I removed 
that call, and the memory leaks got smaller.

My script is used on a page that refreshed every 2 minutes. Over night I 
have found that FF is using in excess of 500MB and stopping FF actually 
frees 800MB of memory.

Andre



More information about the Greasemonkey mailing list