Code Monkey home page Code Monkey logo

Comments (2)

pasky avatar pasky commented on July 29, 2024

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:
#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

from yodaqa.

karimkhanp avatar karimkhanp commented on July 29, 2024

Thanks @pasky for so quick reply. It helped!

from yodaqa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.