Hi,
How fast are you reloading? What version of jQuery are you using?
To limit possible influences, I made the same experiment with plain IEs 6 and
7, reloading the test file manually, once in a 15-20 seconds interval. I use
the latest file from jquery.com, 1.1.1, * Rev: 1153, Date: 2007-01-22 00:27:54
-0500.
It agains shows an increase of about 100-500 kb of memory, when inspecting
directly the iexplore.exe process.
Can someone please verify my results? I use W XP SP2, IE 7 IE 6 (standalone
IE)
We have code to remove all memory
leak-able code, but if it's reloading too fast, it may never get to
that point.
How does this work? There is some onunload code that cleans things up? Can I
put my own code to window.onunload?
Thanks for answering,
M.
Původní zpráva
Od: John Resig [EMAIL PROTECTED]
Předmět: Re: [jQuery] Memory leak in blank index.htmljquery
Datum: 13.2.2007 16:19:27
How fast are you reloading? We have code to remove all memory
leak-able code, but if it's reloading too fast, it may never get to
that point.
To our understanding, jQuery doesn't have any known leak points. What
version of jQuery are you using?
--John
On 2/13/07, Michal.Till [EMAIL PROTECTED] wrote:
Hi all,
I was investigating a memory leak in my application and unfortunately
everything led to jQuery. So I created this simple HTML file:
html
head
script src=packages/jquery/jquery-latest.pack.js /script
/head
body test /body
/html
Then I started Drip, the IE Leak Detector
(http://outofhanwell.com/ieleak/index.php?title=Main_Page) and hit the
auto-refresh button. I was very surprised while viewing the memory consumption
in Process Explorer (by SysInternals, now Microsoft) (the private bytes
graph,
that is the real allocated memory). It was climbing up and up and up... about
0.2-0.5 MB each reload. (I like the Process Explorer more than the memory
graph
provided by Drip).
Remember, Drip is far from 100% reliable. It's function Show DOM leaks
shows
only some and even if it shows nothing, the app can be still leaky. Actually,
it
showd one element leaking, that one mentioned in
http://jquery.com/dev/bugs/bug/705/ . I don't know how this bug was resolved
and
I think that it's not connected with the general leak in the upper code. If I
add the line suggested in mentioned bug site, this record of leaking SCRIPT
id=__ie_init src=//: defer __drip_hooked=true/SCRIPT goes away, but as
I
said, AFAIK it has nothig to do with the main problem.
Thanks for answering,
Michal Till
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/