1 Reply Latest reply on Jan 4, 2007 12:58 AM by manh hung

    How to increase heap memory of JBoss server in JBoss Eclipse

    manh hung Newbie

      Hi everybody!
      I'm using JBoss Eclipse IDE Beta 2 and JBoss 3.2.8 SP1 server for development.
      When I get a amount large data from MySQL database then JBoss server ouput to OutOfMemory exception.
      RAM on my computer is 512MB. I want to increase size of heap memory for JBoss server. How to do ?
      Please help me !!!

        • 1. Re: How to increase heap memory of JBoss server in JBoss Ecl
          manh hung Newbie

          Hi all !
          Hehe, I finded solution, that is simple.
          - The first : modify file run.bat in JBOSS_HOME\bin.
          Remove "rem" in line :
          "rem set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m"
          -> "set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m".
          Because default size of heap memory in JBoss server is 64MB therefore you can increase size by modify digit 128 and 512 depending on size of RAM on your computer.
          128 - that is total memory reserved for JVM.
          512 - that is max memory reserved for JVM.
          - The second : Run file run.bat in folder JBOSS_HOME\bin in order to start JBoss server, not start JBoss server in JBoss Eclipse (remember).
          In order to check result modified, you can access web-console screen of JBoss at address : http://localhost:8081/web-console/.
          Look and feel result.
          Thanks all.