5 Replies Latest reply: Jan 25, 2011 8:03 AM by Andy Tael-Oracle RSS

    Jrockit on Solris is not starting with the -d64 flag

    Andy Tael-Oracle
      Hello,
      I installed WLS 10.3.4 using JRockit JDK 28.1 with the following command:

      /usr/jdk/jrockit-jdk1.6.0_20-R28.1.0-4.0.1/bin/java -jar -d64 wls1034_generic.jar

      and the install went fine.

      Now if I check the process running my WLS JVM instances I can't see the flag -d64 being used.

      I 've looked into the commEnv.sh script and it contains the following:

      if [ "${JAVA_USE_64BIT}" = "true" ] && [ "${JAVA_VENDOR}" != "Oracle" ]
      then
      JVM_D64="-d64"
      export JVM_D64
      JAVA_VM="${JAVA_VM} ${JVM_D64}"
      export JAVA_VM
      fi

      which tells me that if the JAVA_VENDOR is Oracle don't use -d64?

      The env var in commEnv.sh is set to the following:

      JAVA_HOME : /usr/jdk/jrockit-jdk1.6.0_20-R28.1.0-4.0.1
      JAVA_VENDOR : Oracle
      JAVA_USE_64BIT : true
      JAVA_VM : -jrockit
      MEM_ARGS : -Xms128m -Xmx256m
      PRODUCTION_MODE :

      java -version gives the following:

      java version "1.6.0_20"
      Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
      Oracle JRockit(R) (build R28.1.0-123-138454-1.6.0_20-20101014-1350-solaris-sparcv9, compiled mode)

      Is the expected behavior?

      Cheers,
      Andy
        • 1. Re: Jrockit on Solris is not starting with the -d64 flag
          Jay SenSharma MiddlewareMagic
          Hi,

          *"-d64" is a Sun JDK option to start the JVM in 64 bit mode.*
          But This flag is not available in JRockit JVM. So if you will try to start JRockit with -d64 Option then you will get following kind of error:

          *"Unknown option or illegal argument: -d64."*


          Thanks
          Jay SenSharma
          http://middlewaremagic.com/weblogic/ (Middleware magic Is Here)
          • 2. Re: Jrockit on Solris is not starting with the -d64 flag
            Andy Tael-Oracle
            Hello,
            well if I do java -help it tells me that -d64 is a valid option:

            /usr/jdk/jrockit-jdk1.6.0_20-R28.1.0-4.0.1/bin/java -help
            Usage: java [-options] class [args...]
            (to execute a class)
            or java [-options] -jar jarfile [args...]
            (to execute a jar file)

            where options include:
            -d32 use a 32-bit data model if available

            -d64 use a 64-bit data model if available
            -jrockit to select the "jrockit" VM
            -client to select the "client" VM
            -server to select the "server" VM [synonym for the "jrockit" VM]
            The default VM is jrockit.

            -cp <class search path of directories and zip/jar files>
            ...
            ...

            --Andy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
            • 3. Re: Jrockit on Solris is not starting with the -d64 flag
              user161771 - oracle
              There is no JRockit 32bit version for Sparc:
              http://www.oracle.com/technetwork/middleware/jrockit/downloads/index.html

              It's always 64bit.
              • 4. Re: Jrockit on Solris is not starting with the -d64 flag
                Andy Tael-Oracle
                Thanks,
                but why am I told that the java executable for JRockit is a 32-Bit binmary if I determine the file type using the file command:
                java: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped
                Versus if I do file on the Sun JVM I get the following:
                ../../jdk1.6.0_23/bin/sparcv9/java: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped, no debugging information available
                Cheers,
                Andy
                • 5. Re: Jrockit on Solris is not starting with the -d64 flag
                  Andy Tael-Oracle
                  Hello,
                  I've found the 64-bit executable.
                  --Cheers,
                  Andy