9 Replies Latest reply on Oct 31, 2008 12:22 AM by Shane Bryzak

    OutOfMemoryException. How to configure run.conf in Jboss AS?

    Rogerio Canashiro Newbie

      Hi,


      Sometimes I get OutOfMemoryException on Jboss AS.


      I configured run.conf (I run run.bat form Jboss AS manually) like this:






      # Specify options to pass to the Java VM.
      #
      if [ "x$JAVAOPTS" = "x" ]; then
         JAVAOPTS="-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512 -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
      fi






      In seamreference.pdf it is explained that:



      JBoss has sophisticated support for hot re-deployment of WARs and EARs. Unfortunately,
      due to bugs in the JVM, repeated redeployment of an EAR—which is common during
      development—eventually causes the JVM to run out of perm gen space. For this reason, we
      recommend running JBoss in a JVM with a large perm gen space at development time. If you're
      running JBoss from JBoss IDE, you can configure this in the server launch configuration, under
      VM arguments. We suggest the following values:
      -Xms512m -Xmx1024m -XX:PermSize 256m -XX:MaxPermSize 512


      But it still happens OutOfMemoryException. Am I not configuring run.conf correctly?