From bfb53b7fbb3e3df6c693207e008b897b8340564e Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 23 Apr 2009 09:54:47 +0000 Subject: [PATCH] BF [2779124] OutOfMemoryError: PermGen space *set -XX:MaxPermGen=128m --- jboss/bin/run.bat | 4 ++-- jboss/bin/run.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jboss/bin/run.bat b/jboss/bin/run.bat index 677fce2ecc..11c4a6b98b 100644 --- a/jboss/bin/run.bat +++ b/jboss/bin/run.bat @@ -53,7 +53,7 @@ set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar :SKIP_TOOLS -rem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don't include it, as this will +rem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don't include it, as this will rem result in including the local directory in the classpath, which makes rem error tracking harder. if not "%JAVAC_JAR%" == "" set RUNJAR=%JAVAC_JAR%;%RUNJAR% @@ -70,7 +70,7 @@ rem Add -server to the JVM options, if supported if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server) rem JVM memory allocation pool parameters. Modify as appropriate. -set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m +set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XX:MaxPermGen=128m 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 diff --git a/jboss/bin/run.conf b/jboss/bin/run.conf index a40c81a368..4e969da5a4 100644 --- a/jboss/bin/run.conf +++ b/jboss/bin/run.conf @@ -40,11 +40,11 @@ # Specify options to pass to the Java VM. # if [ "x$JAVA_OPTS" = "x" ]; then - JAVA_OPTS="-Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000" + JAVA_OPTS="-Xms128m -Xmx512m -XX:MaxPermGen=128m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000" fi # Sample JPDA settings for remote socket debuging #JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n" -# Sample JPDA settings for shared memory debugging +# Sample JPDA settings for shared memory debugging #JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=jboss"