2 Replies Latest reply on Mar 25, 2009 1:28 PM by peterj

    JBoss on Ubuntu, memory problems

      Hello

      I have the following setup:

      Ubuntu Server 8.0.4.1 vmware image with 512MB RAM
      Sun Java JRE build 1.6.0_07-b06
      JBoss 4.2.2.GA

      Im am running one Grails web application on the server. Whenever I run the report generation functionality of my application I get an out of memory exception (out of perm space :-( )

      This application worked when running under Jetty.

      Is Java 6 recommended for JBoss 4.2.2.GA??? Should I use Java 5 instead?

      What do you think could be my problem?

      Thank you

        • 1. Re: JBoss on Ubuntu, memory problems

          I have increased the perm size to 128m and my report generation now works (for how long im not sure...)

          I have modified the JAVA_OPTS parameter in my run.conf file to read as follows.

          JAVA_OPTS="-XX:MaxPermSize=128m -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"

          Id still be interested to find out if Sun Java 6 is ok with this version of JBoss

          Thanks

          • 2. Re: JBoss on Ubuntu, memory problems
            peterj

            Yes, you can use JDK 6 with AS 4.2.2. What you did is the correct solution to the permgen issue - having done some Grails work myself I know that Grails uses a lot of permgen space.