Child pages
  • Error occurred during initialization of VM

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

When running StartServer.bat on Windows, SQuORE Squore fails to start with the following being displayed in the console:

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

JBoss Bootstrap Environment

JBOSS_HOME: C:\SQuORING\SQuORE\Server

JAVA: C:\Program Files (x86)\Java\jdk1.6.0_22\bin\java

JAVA_OPTS: -Djava.library.path="C:\SQuORING\SQuORE\Server\bin\native"
-Dprogram.name=run.bat -server -Xms128m -Xmx1513m -XX:PermSize=128m -XX:MaxPerm
Size=192m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Dsun.rmi.dgc.cl
ient.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

CLASSPATH: C:\Program Files (x86)\Java\jdk1.6.0_22\lib\tools.jar;C:\SQuORING\S
QuORE\Server\bin\run.jar

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

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Press any key to continue...


Affected Versions

This issue affects SQuORE Squore 2012-A installations using a 32-bit JDK if the machine has more than 3GB or RAM. A default installation of SQuORE configures the server to start using 25% of the RAM available. In some cases, this can be over the maximum amount of memory that a 32-bit JDK can allocate, wchich leads to the error above.

Fixing The Problem

There are two ways to fix the problem:

  • Use a 64-bit JDK if you can
  • Modify SQuORE Squore's startup parameters to lower the amount of memory used.

Note that it is preferable to use a 64-bit JDK to speed-up SQuORE Squore analyses.

Installing a 64-bit JDK

After you install a 64-bit JDK, you will need to point your SQuORE Squore installation to your new Java home:

  1. Edit <INSTALLDIR>/Bin/config.bat
  2. Change the path of the variable JDK_DIR
  3. Save the file and launch StartServer.bat


Modifying

SQuORE

Squore's Configuration

If you need to continue using a 32-bit JDK:

  1. Edit <INSTALLDIR>/Server/bin/run.bat
  2. Find the line "rem JVM memory allocation pool parameters. Modify as appropriate." (this should be line 72)
  3. Modify the amount of RAM allocated by SQuORE at startup by lowering the value of the -Xmx parameter. Using -Xmx1024m is recommended.
  4. Save the file and launch StartServer.bat

...