facebook

java.lang.OutOfMemoryError: Java heap space w/build.xml

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #264689 Reply

    jwachhorst
    Member

    I have:
    Eclipse SDK, Version 3.2.1, build id: M20060921-0945
    MyEclipse is: version 5.1.0 GA, build id: 20061111-5.1.0-GA

    My machine is running Windows XP with 1.5Gb RAM.

    I’m running a build.xml, and the build keeps failing with these messages:
    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.OutOfMemoryError: Java heap space

    I’ve modified eclipse.ini so that it contains this:

    -vmargs
    -Xms256m
    -Xmx768m
    -XX:PermSize=64M
    -XX:MaxPermSize=128M

    I’ve also tried starting Eclipse with a batch file containing this:

    D:\eclipse\eclipse.exe -vm C:\jdk1.5.0_09\bin\java.exe -vmargs -Xms512m -Xmx1024m -Xss2m -XX:MaxPermSize=256m

    Even when I have no other applications open, the build fails as above.

    Any suggestions?

    Thanks in advance-

    #264730

    Greg
    Member

    If you are running the build.xml in an external tools launch configuration, then your build.xml is running in a separate jvm instance. So increasing the -Xmx settings on the jvm that is running eclipse will not affect your build.xml script.

    – Go into Run > External Tools > External Tools…
    – Select your build.xml launch configuration
    – Switch to the jre tab
    – under vm args add “-Xmx256M -XX:MaxPermSize=128M”

    Then relaunch the build.xml. That should do the trick.

    #264756

    jwachhorst
    Member

    Greg-
    Thank you, thank you, THANK YOU!

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: java.lang.OutOfMemoryError: Java heap space w/build.xml

You must be logged in to post in the forum log in