quality@glassfish.java.net

Re: Error: Out of memory

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Fri, 12 Sep 2008 08:35:37 -0700

I think it's worth logging this as a bug if not already present.

Were you just deploying and undeploying or anything else?
Traditionally, we have been having PermGen space problems in such scenario.

Thanks for reporting it.

-Kedar

Jose Noheda wrote:
> Hi,
>
> After some heavy work (several iterations of redeploys) with Netbeans
> 6.5 & Glassfish v3 I start getting:
>
> GRAVE: Exception in thread "Thread-14"
> GRAVE: java.lang.OutOfMemoryError: PermGen space
> GRAVE: Exception in thread "DynamicReloader"
> GRAVE: java.lang.OutOfMemoryError: PermGen space
> GRAVE: Exception in thread "RMI RenewClean-[9.172.156.62:3262
> <http://9.172.156.62:3262>]"
> GRAVE: java.lang.OutOfMemoryError: PermGen space
> GRAVE: Exception in thread "JMX server connection timeout 44"
> GRAVE: java.lang.OutOfMemoryError: PermGen space
> GRAVE: Exception in thread "connector-runtime"
> GRAVE: java.lang.OutOfMemoryError: PermGen space
> GRAVE: Exception invoking periodic operation:
> java.lang.OutOfMemoryError: PermGen space
>
> GRAVE: Exception in module org.glassfish.core.kernel [101] :
> java.lang.OutOfMemoryError: PermGen space
> GRAVE: org.jvnet.hk2.component.ComponentException: Failed to load
> com.sun.enterprise.v3.admin.StopDomainCommand from
> org.jvnet.hk2.osgiadapter.OSGiModuleImpl$1$1_at_1a076a7
>
> Which is quite a burden because the server won't stop at all and forces
> me to kill every java process..I know the permgen space is configurable
> but the current threshold must be very low. And something has to be
> devised to be able to stop the server somehow
>
> Regards,