2 Replies Latest reply: Mar 28, 2012 3:16 PM by 927099 RSS

    JRockit 'could not create the Java virtual machine'

    user12129907
      I installed JRockit (build R28.1.4-7-144370-1.6.0_26-20110617-2130-linux-x86_64) on a server SLES11SP1 (x86_64), but I got the following erros when I tried to run java command:
      /usr/lib64/jrockit-jdk1.6.0_26-R28.1.4-4.0.1/bin # ./java
      [WARN ][codegc ] Could not acquire 64KB of code memory.
      [WARN ][codegc ] 0B committed previously.
      Could not create the Java virtual machine.

      Any idea?
        • 1. Re: JRockit 'could not create the Java virtual machine'
          René van Wijk
          When you do ./java you usually get some output such as:
          [oracle@edu-wls-rh bin]$ ./java
          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>
              -classpath <class search path of directories and zip/jar files>
                            A : separated list of directories, JAR archives,
                            and ZIP archives to search for class files.
              -D<name>=<value>
                            set a system property
              -verbose[:class|gc|jni]
                            enable verbose output
              -version      print product version and exit
              -version:<value>
                            require the specified version to run
              -showversion  print product version and continue
              -jre-restrict-search | -jre-no-restrict-search
                            include/exclude user private JREs in the version search
              -? -help      print this help message
              -X            print help on non-standard options
              -ea[:<packagename>...|:<classname>]
              -enableassertions[:<packagename>...|:<classname>]
                            enable assertions
              -da[:<packagename>...|:<classname>]
              -disableassertions[:<packagename>...|:<classname>]
                            disable assertions
              -esa | -enablesystemassertions
                            enable system assertions
              -dsa | -disablesystemassertions
                            disable system assertions
              -agentlib:<libname>[=<options>]
                            load native agent library <libname>, e.g. -agentlib:hprof
                              see also, -agentlib:jdwp=help and -agentlib:hprof=help
              -agentpath:<pathname>[=<options>]
                            load native agent library by full pathname
              -javaagent:<jarpath>[=<options>]
                            load Java programming language agent, see java.lang.instrument
              -splash:<imagepath>
                            show splash screen with specified image
          Note the usage, which means have to use something like: ./java -Xms1024m -Xmx1024m -Xgc:throughput package.MyMainClass
          • 2. Re: JRockit 'could not create the Java virtual machine'
            927099
            Hi EveryBody

            Im having the same problem instaling JRockit in that operating system, Did you find any solution?

            I tried to pass parameters to the JRockit installer but It doesn´t work

            Thanks

            Edited by: Fido on 28/03/2012 01:15 PM