1 Reply Latest reply on Feb 9, 2010 11:45 AM by peterj

    Configuring heap size

      Hi All

       

      I am using jboss-5.1.0.GA in Win XP in the development environment.

      The application needs to parse a XML file in one of the modules, the average size of the file is around 75MB.

       

      I have tried the validity of the parsing routine with smaller files are there is no problem regarding that. When I try to parse the full version of the file I am getting, java.lang.OutOfMemoryError: Java heap space.

       

      I have tried to set the heap size configuration in the $JBOSS_HOME/bin/run.conf file.

      The current entry now looks like -

      #

      # Specify options to pass to the Java VM.

      #

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

         JAVA_OPTS="-Xms1024m -Xmx2048m -XX:MaxPermSize=1024m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"

      fi

      I have tried to run the XML parser utility from the eclipse IDE, where also I was having similar problems. I sorted it out by putting -Xmx1024m in the VM arguments.
      The same file is giving the above error in the JBoss environment. I need to sort this quickly and looking for urgent help.
      I have attached the stack trace.