java.lang.OutOfMemoryError: PermGen space

Error:

SEVERE: Exception in module org.glassfish.main.core.kernel [228] : 
java.lang.OutOfMemoryError: PermGen space
SEVERE: Exception in module org.glassfish.main.core.kernel [228] : 
java.lang.RuntimeException: java.lang.OutOfMemoryError: PermGen space
SEVERE: Exception in thread "RMI RenewClean-[10.0.0.12:8686]"

Solution 1:
1) Go to task manager –>Processes–>close java.exe and then restart glassfish server and run the application

Solution 2:
2) Open domain.xml inside glassfish folder
<jvm-options>-XX:MaxPermSize= 1024 (here change the size or 256 or 1024) this will increase the memory of glassfish and overcomes the error.

By Sri

Leave a Reply

Your email address will not be published. Required fields are marked *