6 Replies Latest reply on Nov 24, 2009 11:14 AM by Peter Johnson

    window 2003: Out OF Memory exception, heap space, can not be

    Dave Chen Master

      Hi,
      we am trying to install JBoss 5.1.0GA on Window 2003. Physical memory
      size is 2G.

      The default JVM setting in run.conf.bat is :
      JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M

      we got the following OutOfMemory exception. We experimented:

      JAVA_OPTS=-Xms128M -Xmx1024M -XX:MaxPermSize=512M
      JAVA_OPTS=-Xms1024M -Xmx1024M -XX:MaxPermSize=1024M
      JAVA_OPTS=-Xms256M -Xmx640M -XX:MaxPermSize=256M
      JAVA_OPTS=-Xms256m -Xmx2048m -XX:MaxPermSize=256m

      no luck. what should be the option for window 2003?

      On FC 10, we use
      JAVA_OPTS="-Xms256m -Xmx2048m -XX:MaxPermSize=256m"
      it works.


      Thaks for help.

      00:50:21,828 ERROR [ProfileDeployAction] Failed to add deployment: jbossweb.sar
      org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(jbossweb.sar)
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentExcept
      ion(DeploymentException.java:49)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers
      .determineStructure(AbstractStructuralDeployers.java:85)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(
      MainDeployerImpl.java:1004)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeployment
      Context(MainDeployerImpl.java:440)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainD
      eployerImpl.java:390)
      ...

      00:50:34,609 ERROR [BasicMBeanRegistry] Cannot register MBean
      java.lang.OutOfMemoryError: Java heap space