- changed status to resolved
Can't run demos on 32bit system due to -Xmx8G
Issue #43
resolved
OPAL uses -Xmx8G in OPAL/demo/build.sbt and OPAL/ai/build.sbt, but this option causes an error here when I'm trying to run a main class from the Demos project:
$ sbt
[info] Loading project definition from .../opal/project
[info] Set current project to OPAL Library (in build file:.../opal/)
> project Demos
[info] Set current project to Demo (in build file:.../opal/)
> run-main org.opalj.br.ShowInnerClassesAttribute
[info] Running org.opalj.br.ShowInnerClassesAttribute
[error] Invalid maximum heap size: -Xmx8G
[error] The specified size exceeds the maximum representable size.
[error] Error: Could not create the Java Virtual Machine.
[error] Error: A fatal exception has occurred. Program will exit.
java.lang.RuntimeException: Nonzero exit code returned from runner: 1
at scala.sys.package$.error(package.scala:27)
$ uname -m
i686
$ java -version
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1)
OpenJDK Server VM (build 24.51-b03, mixed mode)
Comments (6)
-
repo owner -
reporter Even after the change to -Xmx3G, I'm still seeing a similar error:
[error] Error: Could not create the Java Virtual Machine. [info] Error occurred during initialization of VM [error] Error: A fatal exception has occurred. Program will exit. [info] Could not reserve enough space for object heap java.lang.RuntimeException: Nonzero exit code returned from runner: 1 at scala.sys.package$.error(package.scala:27)
In fact the same happens just when running java manually from the console:
$ java -Xmx3G Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
It works for me when using -Xmx2G instead.
-
reporter - changed status to open
-
repo owner - changed status to resolved
fixed issue
#43→ <<cset 3068ec7b1447>>
-
repo owner - removed milestone
Removing milestone: 0.8.0-M3 (automated comment)
-
repo owner - removed version
Removing version: 0.8.0 (automated comment)
- Log in to comment
fixed issue
#43→ <<cset 00556a38d39d>>