brmson / yodaqa

A Question Answering system built on top of the Apache UIMA framework.
http://ailao.eu/yodaqa
Other
619 stars 205 forks source link

Invalid maximum heap size #3

Closed karimkhanp closed 9 years ago

karimkhanp commented 9 years ago

Hi, thanks for this code. While testing this code on 8GB, core i3 system. Facing this issue:


./gradlew run -q Invalid maximum heap size: -Xmx4500m The specified size exceeds the maximum representable size. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

FAILURE: Build failed with an exception.

2 . -------

JAVA_OPTS="-Xms1024m -Xmx2048m" ./gradlew run -q Invalid maximum heap size: -Xmx4500m The specified size exceeds the maximum representable size. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

FAILURE: Build failed with an exception.


Obviously there is no issue regarding code, but in assigning RAM. I checked 'gradlew' executable, but could not find where is the limit for '4500m' is defined.

Could you please suggest any suggestion for this?

pasky commented 9 years ago

The maximum heap size is defined in build.gradle. Please try decreasing it there, maybe to something like 2500m.

On Thu, Dec 18, 2014 at 07:17:37AM -0800, Karimkhan wrote:

Hi, thanks for this code. While testing this code on 8GB, core i3 system. Facing this issue:


./gradlew run -q Invalid maximum heap size: -Xmx4500m The specified size exceeds the maximum representable size. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':run'.

    Process 'command '/usr/lib/jvm/java-7-openjdk-i386/bin/java'' finished with non-zero exit value 1

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

2 . -------

JAVA_OPTS="-Xms1024m -Xmx2048m" ./gradlew run -q Invalid maximum heap size: -Xmx4500m The specified size exceeds the maximum representable size. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':run'.

    Process 'command '/usr/lib/jvm/java-7-openjdk-i386/bin/java'' finished with non-zero exit value 1

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Obviously there is no issue regarding code, but in assigning RAM. I checked 'gradlew' executable, but could not find where is the limit for '4500m' is defined.

Could you please suggest any suggestion for this?


Reply to this email directly or view it on GitHub: https://github.com/brmson/yodaqa/issues/3

            Petr Baudis
If you do not work on an important problem, it's unlikely
you'll do important work.  -- R. Hamming
http://www.cs.virginia.edu/~robins/YouAndYourResearch.html
karimkhanp commented 9 years ago

Thanks @pasky for so quick reply. It helped!