PDA

View Full Version : Memory Leak !



embolooloo
22 Oct 2007, 2:35 PM
Hi,

ExtJS is a indeed a great library, but it has a serious memory leak.
It dosen't metter if I remove a GridPanel/TabPanel/Window... components, the memory is just getting higher and higher.

look at this ExtJS example:
http://extjs.com/deploy/dev/examples/window/hello.html
Try to open the window, close it, open it again and so on, and you'll see that the memory usage is just getting higher...(I've tried it in Firefox and IE6/7).

22 Oct 2007, 2:41 PM
Hi,

ExtJS is a indeed a great library, but it has a serious memory leak.
It dosen't metter if I remove a GridPanel/TabPanel/Window... components, the memory is just getting higher and higher.

look at this ExtJS example:
http://extjs.com/deploy/dev/examples/window/hello.html
Try to open the window, close it, open it again and so on, and you'll see that the memory usage is just getting higher...(I've tried it in Firefox and IE6/7).



oye another one of these posts..

I did exactly what you said, and i hovered ~ 30MB using IE7. Click the button, show icon, hit esc to close. I did it very rapidly, no issues.

are you doing this in a pristine browser with no history? Do you have multiple tabs running?

I really think the term "memory leak" is being misused in so many places - it's not funny.

jack.slocum
22 Oct 2007, 2:42 PM
I don't know what platform you are on. But I opened that example as you said, opened and close 20 times and had not even a byte of increase in memory usage.

narven
22 Oct 2007, 3:00 PM
no problems where.. with windows :P

JeffHowden
22 Oct 2007, 3:20 PM
I tried that suggested link both in IE6 and Firefox (which has been open most of the day with multiple tabs) and didn't get a hint of memory increase. In fact, I noticed in IE that the memory usage actually went down every time I closed the Ext window. It also went down substantially when I closed the browser window (because it unloaded Ext which was in memory).

SeaSharp
22 Oct 2007, 3:25 PM
But I opened that example as you said, opened and close 20 times and had not even a byte of increase in memory usage.
Browser = IE 7, loaded fresh at start of test.

Looking at the mislabelled VM Size in windows task manager I see a 2Mb variation during repetitions of that test. Sometimes at the completion of a test cycle memory usage will stick at a higher figure but then recover during a subsequent button click.

I can provoke a 1Mb memory leak in the V2 documentation system by viewing all the classes under tree node grid, then closing all the opened tab panels and then repeating the cycle.

SeaSharp
22 Oct 2007, 3:39 PM
It also went down substantially when I closed the browser window (because it unloaded Ext which was in memory).
It sounds as though you are assessing memory usage from a global figure? A detailed memory leak assessment should focus on "private bytes" of the process under investigation.

22 Oct 2007, 4:31 PM
http://tdg-i.com/img/extjs/what_leak.swf

http://www.panama-guide.com/images/articles/20060326174727837_2.jpg

narven
22 Oct 2007, 6:09 PM
are u doing mechanical tests to the window????? or to the mouse????

22 Oct 2007, 6:20 PM
http://www.realmofdarkness.net/pranks/chappelle-4.jpg

ok, seriously - please elaborate ;)