quality@glassfish.java.net

Error: Out of memory

From: Jose Noheda <jose.noheda_at_gmail.com>
Date: Fri, 12 Sep 2008 16:25:56 +0200

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]"
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,