Announcement

Collapse
No announcement yet.

java.lang.OutOfMemoryError: Java heap space

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • java.lang.OutOfMemoryError: Java heap space

    Hi all,

    I am following the howto to install OX Hyperion http://typo3.open-xchange.com/wiki/i...._Installation

    I installed all 3rd party libraries.

    When i launch:
    Code:
    cd /tmp/open-xchange/
    ant -Dlib.dir=/opt/open-xchange/lib install
    I have this message:
    Code:
    compile:
        [javac] Compiling 959 source files to /tmp/open-xchange/build
        [javac]
        [javac]
        [javac] The system is out of resources.
        [javac] Consult the following stack trace for details.
        [javac] java.lang.OutOfMemoryError: Java heap space
    
    BUILD FAILED
    /tmp/open-xchange/build.xml:111: Compile failed; see the compiler error output for details.
    The server is Debian Etch with 1 Go RAM and dual-core AMD CPU.

    Any ideas ?

    Thanks

  • #2
    In and of itself java (and in turn ant) just uses 64Mb of your memory, trying to behave itself. Quite a testimony to java being about 10yrs old, I guess.
    Try:

    ant -Xmx512m -Dlib.dir=/opt/open-xchange/lib install

    Comment


    • #3
      Exactly.

      While searching I also found another way to solve it:
      Create a ~/.ant/ant.conf file with:
      ANT_OPTS="-Xms512M -Xmx512M"
      inside.

      Now Ant is working fine.

      Comment

      Working...
      X