1 Reply Latest reply on Oct 29, 2011 9:41 AM by rhusar

    how to configure 64 bit jvm with jboss eap

    utkarsh_shinde

      Hi All

      How to configure 64 bit jvm with jboss eap....I am running 64 bit windows 7.Actually I want to increase memory of heap upto 2 gb.

       

      Utkarsh

        • 1. Re: how to configure 64 bit jvm with jboss eap
          rhusar

          Hi Utkarsh,

           

          that should be really easy if you have 64bit operating system already. First download 64 bit Java from http://www.oracle.com/technetwork/java/index.html (JDK) for Windows 7 and install it. Make sure you are running the 64 bit java, in your command line type java -version and you should see something like:

           

          Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)

           

          Then you can either edit run.conf and change this line

           

          #

          # Specify options to pass to the Java VM.

          #

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

             JAVA_OPTS="-Xms128m -Xmx1g -XX:MaxPermSize=512m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"

          fi

           

          -Xmx1g to 2g.

           

          You can also set JAVA_OPTS

           

          For instance on linux (on Windows use set and run.bat instead)

           

          [rhusar@rhusar bin]$ export JAVA_OPTS="-Xmx4g"

          [rhusar@rhusar bin]$ ./run.sh

          =========================================================================

           

            JBoss Bootstrap Environment

           

            JBOSS_HOME: /home/rhusar/Download/jboss-5.1.0.GA

           

            JAVA: /home/rhusar/tools/jdk1.6.0/bin/java

           

            JAVA_OPTS: -Dprogram.name=run.sh -server -Xmx4g -Djava.net.preferIPv4Stack=true

           

            CLASSPATH: /home/rhusar/Download/jboss-5.1.0.GA/bin/run.jar:/home/rhusar/tools/jdk1.6.0/lib/tools.jar

           

          =========================================================================

           

          15:00:44,140 INFO  [ServerImpl] Starting JBoss (Microcontainer)...

          15:00:44,141 INFO  [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)

          15:00:44,141 INFO  [ServerImpl] Bootstrap URL: null

           

          HTH

           

          Rado