1 Reply Latest reply: Apr 10, 2013 5:54 AM by KirandeepKaur RSS

    Admin server startup error - PermGen space

      Dear Legends,
      When i start admin server , I'm getting the following error

      <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.OutOfMemoryError: PermGen space
      java.lang.OutOfMemoryError: PermGen space
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
      Truncated. see log file for complete stacktrace

      By many searches, i came to know that i should change MEM_ARGS parameters.
      But i don't know where to change and what value i should i give.

      Pls help me resolve this error

      Thanks in Advance.
        • 1. Re: Admin server startup error - PermGen space
          You have to increase the value of XX:MaxPermSize in your mem argrs. You can increase the permsize in setDomainEnv.cmd/sh

          go to DOMAIN_HOME\bin\setDomainEnv.cmd file. (setDomainEnv.sh if you are on any unix/linux platform), search for XX:PermSize, XX:MaxPermSize and increase th values.


          if [ "${JAVA_VENDOR}" != "Oracle" ] ; then
          DEFAULT_MEM_ARGS="${DEFAULT_MEM_ARGS} -XX:PermSize=512m
          PORT_MEM_ARGS="${PORT_MEM_ARGS} -XX:PermSize=256m -XX:MaxPermSize=512m"