users@glassfish.java.net

Re: Autodeploying multiple times causes OutOfMemoryError in PermGen

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Thu, 08 Mar 2007 16:57:31 -0800

Are you using OpenJPA as the persistence provider? If yes, can you try the
default provider?

thanks,
-marina

glassfish_at_javadesktop.org wrote:
> Currently using b37 on Windows with Netbeans.
>
> I am also seeing the memory (both heap and non-heap) grow consistently every time I redeploy an application. I am monitoring glassfish using JConsole. JConsole also shows that the classloader loads in more and more classes with every deployment.
>
> After about 20 deployments my glassfish has grown about 400MB in size and the classloader is managing about 50,000 classes (up from about 7,000-10,000) on first deployment. Is the classloader failing to release classes from the previous deployment?
>
> This is really quite frustrating as I need to restart glassfish every few hours during development.
>
> Regards
> Cameron
> [Message sent by forum member 'cameronr' (cameronr)]
>
> http://forums.java.net/jive/thread.jspa?messageID=207013
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>