Hi, the java mustang build 91 seems to fix the "Memory leak in PermGen during excessive class loading" bug (id 6417036 ) http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6417036
"Evaluation: It would probably be better if the stackmap data were stored in the Java heap, instead of the C-heap, so that they can be garbage collected when the class is unloaded." I don't know if this bug fix hit the core of the problem, but... I'm using the mustang b92 to develop a large tapestry4 application, Our group use tapestry cache but we put links to the application pages that call the reset service. With jdk1.5, after 5 or 6 resets, the out of memory error appears, with the latest mustang build this problem *seems* to be fixed. Or at least, I can call the reset service for a reasonable number of times (after that usually I have to restart tomcat to safely reload source class changes ... ;^) Regards, Luca On 7/24/06, Peter Stavrinides <[EMAIL PROTECTED]> wrote: > Hi all, > > I think I understand, but the question is is there anything we can do about > it? > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Eric > Cuendet > Sent: 22 July 2006 18:22 > To: Tapestry users > Cc: Tapestry users;Tacos Developers > Subject: Re: [Tacos-devel] PermGen space > > Hi all, > This problem is very common with Tapestry applications. This is due to > the fact that Tapestry uses cglib to generate classes at runtime. > Java uses a separate Heap space called "PermGenSpace" to put meta-data > about classes, which is never garbage collected (this is "normal" since > normally, classes never change...) but with cglib, classes are > generated, which add to the PermGenSpace. And the next time your > application is deployed, new classes are generated which add to the > PermGenSpace, etc... So it fills and become full. > So this problem is common to Java+Tapestry/cglib+deployed webapps. > I hope this explaination is clear. Else ask questions. > -jec > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Tacos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tacos-devel
