Instead of delete, have you tried setting the reference to the class to null?
On Sun, Jan 23, 2011 at 5:24 PM, Nicolas <[email protected]> wrote: > Hi, > > Test loading my app on the server side, I realized that I had a big > memory leak. > > Narrowing down the problem, I ended up load testing something really > simple, with still a memory leak: > > var i_max=50000; > mc=0; > for (var i=1;i<=i_max;i++) > { > matches[i]=new Test_Class("s", > 1,mc,"local",0,0,1); > > delete (matches[i]); // Never does > anything... There does not seem to be any destructor in Mootools. > } > > With the empty class Test_Class defined like this: > > Test_Class= new Class({ > > //Constructor > initialize: function(param1, param2, param3, ) > { > > } > }); > > The 50,000 iterations lead to a leak of 40 Mb, that is 0.8kB per new > object of the class created. > I have Mootools 1.2.4 on the server, with a compile from the git from > the 16th of december. > > My questions are: > > 1) Do you think that the memory leak is related to SpiderMonkey or > Mootools? > 2) Do you think upgrading to Mootools 1.3 help? I have tried but > failed to do so. For some reasons, I don't manage to make it work. > 3) Can you reproduce the problem on you server? It should not take > very long to copy the few lines above. > 4) Are there any know memory leak left in Ape? > > Any help greatly appreciated. > > Thanks in advance. > > Nicolas. > > -- > You received this message because you are subscribed to the Google > Groups "APE Project" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<ape-project%[email protected]> > For more options, visit this group at > http://groups.google.com/group/ape-project?hl=en > --- > APE Project (Ajax Push Engine) > Official website : http://www.ape-project.org/ > Git Hub : http://github.com/APE-Project/ > -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
