4 Replies Latest reply on Feb 14, 2008 4:54 PM by chris case

    64-bit JVM on 2.6.4

    chris case Newbie

      Does anyone know the best 64-bit JVM and/or JAVA_OPTS that work well with JBoss Portal 2.6.4? I have been using "Java VM: Java HotSpot(TM) 64-Bit Server VM 1.5.0_13-b05,Sun Microsystems Inc." to no avail.

      I'm getting a few errors, such as the ones I listed in this thread earlier:

      All of the deployments of JBoss that I'm about to install will be in the 64-bit environment, and I'm rather surprised that its not working "out of the box" like it always has when I would run it in a 32-bit environment.


        • 1. Re: 64-bit JVM on 2.6.4
          Prabhat Jha Master

          I do bunch of portal perf and scalability test on 64bit machine with 64-bit sun jvm and I have not have any problem. But that's not your answer, is it? :-)

          You need to increase perm gen size. In your JVM options.

          change your run.conf as:

           JAVA_OPTS="-Xms512m -Xmx512m -XX:NewRatio=10 -XX:PermSize=64M -XX:MaxPermSize
          =128M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=36

          • 2. Resolved: 64-bit JVM on 2.6.4
            chris case Newbie

            Thank you so much for your help. This has stopped all of the fatal errors!

            I have 8gb of ram to work with, so I may end up bumping up those values a bit more.

            I have 2x 4-core Intel Xeons on the machine, so I will have to see how the JVM runs on multiple processors, for the optimal configuration.

            I'll post the results of my experimentations here...

            Thanks again!

            • 3. Re: 64-bit JVM on 2.6.4
              Prabhat Jha Master

              Those values will not need to be increased as you increase the heap size. Permgen is used for loading all the classes. Once an app has been running, this space does not grow.

              • 4. Re: 64-bit JVM on 2.6.4
                chris case Newbie

                These values worked quite well in my initial tests.

                JAVA_OPTS="-Xms4096m -Xmx6114m -XX:NewRatio=10 -XX:PermSize=64M -XX:MaxPermSize=128M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"

                Thanks again for sharing your advice.