Announcement Announcement Module
Collapse
No announcement yet.
STS - springroo shell java heap space problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • STS - springroo shell java heap space problem

    Hi,

    I already posted this on the Spring roo forum but maybe this is more of a STS problem.

    I keep running in to the following error when running a spring roo shell in STS: roo> perform package

    Code:
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building myspace
    [INFO]    task-segment: [package]
    [INFO] ------------------------------------------------------------------------
    [INFO] [aspectj:compile {execution: default}]
    [ERROR] ABORT
    [ERROR] unexpected exception
    [INFO] ------------------------------------------------------------------------
    [ERROR] FATAL ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Java heap space
    [INFO] ------------------------------------------------------------------------
    [INFO] Trace
    java.lang.OutOfMemoryError: Java heap space
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 2 minutes 26 seconds
    [INFO] Finished at: Mon Mar 22 17:31:33 CET 2010
    [INFO] Final Memory: 81M/81M
    [INFO] ---------------------------
    How can I increase the 80mb java heap space? (I am a Mac user)

    I already tried following:
    export ROO_OPTS="-XX:MaxPermSize=1024m -Xms256m -Xmx1950m"

    I also tried changing the settings of STS.ini but no success.

    Thanks in advance.

  • #2
    Hi,

    as far as I know, Roo launches Maven as a separate process using the mvn.sh or mvn.bat shell script. Did you try to increase the head settings for Maven? Does this also happen when you run mvn package from outside of STS?

    Christian

    Comment

    Working...
    X