Tuesday 27 August 2013

java.lang.OutOfMemoryError : Permgen space in eclipse

Step 1   Click on server
Step 2:    Click on Open launch configuration
Step 3:    Enter the following arguments in VM arguments.
-Dprogram.name=run.bat -Djava.endorsed.dirs="D:/jboss-4.2.3.GA/bin/../lib/endorsed" 
-Xms512m -Xmx1024m -XX:+UseParallelGC -XX:PermSize=256M -XX:MaxPermSize=512M
To change JBoss port while running
-Djboss.service.binding.set="ports-03
Program arguments:
-c default   or -c default –b 0.0.0.0
Step 4:   Copy the below statements into your jboss server- run.conf file.
# Specify options to pass to the Java VM.
if [ "x$JAVA_OPTS" = "x" ]; then
   JAVA_OPTS="-Xms512m -Xmx512m -XX:MaxPermSize=1024m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
fi

Step 5:   Copy the below statements into your JBoss Server- run.bat file
rem With Sun JVMs reduce the RMI GCs to once per hour

set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000


No comments:

Post a Comment

SpringBoot

SpringBoot SpringBoot Application :  Pros & Cons :  SpringBoot Application creation using spring.io :  SpringBoot Application Annotation...