4 Replies Latest reply on Feb 14, 2013 8:16 AM by Wolf-Dieter Fink

    Getting java.lang.OutOfMemoryError: PermGen space while starting up the Jboss

    ANIL JAGURI Newbie

      Hi All ,

       

      In the run.log file below is the error

       

      at java.lang.ClassLoader.defineClass1(Native Method)

      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)

      at java.lang.ClassLoader.defineClass(ClassLoader.java:616)

      at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:63)

      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:572)

      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:532)

      at java.security.AccessController.doPrivileged(Native Method)

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:530)

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:507)

      at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)

      at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)

      at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)

      at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)

      at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:150)

      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:265)

      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

      at java.lang.Class.forName0(Native Method)

      at java.lang.Class.forName(Class.java:169)

      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:462)

      at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:280)

      at oracle.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXADataSource.java:482)

       

      Below the setting in the run.conf and the run.conf.bat files :

       

      f [ "x$JAVA_OPTS" = "x" ]; then

         JAVA_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"

       

      And

       

      set "JAVA_OPTS=-Xms1024M -Xmx2048M -XX:MaxPermSize=1024M"

       

      Thanks for all you help in advance.