tmanolatos
tmanolatos

Reputation: 932

Grails/GGTS: compilation gives org.apache.tools.ant.BuildException: java.lang.OutOfMemoryError: Java heap space/GC overhead limit exceeded

I have a 2.2.4 Grails project with lots of Domain classes (~360) and I am using GGTS 3.3.0.

These 360 domain classes where generated by reverse engineering plugin.

The problem is that I can't compile my project in GGTS, receiving

Error Fatal error during compilation org.apache.tools.ant.BuildException: java.lang.OutOfMemoryError: Java heap space (Use --stacktrace to see the full trace)
Error java.lang.OutOfMemoryError: GC overhead limit exceeded

I have a Win7 system with 6GB RAM running the most updated release of Oracle JDK 1.6

Any clues on how to configure GGTS in order to permit me compiling the project?

Upvotes: 2

Views: 3205

Answers (1)

rxn1d
rxn1d

Reputation: 1266

Just add memory to your JVM! That should help (adding options to VM):

-Xmx2G -XX:MaxPermSize=1024m

Upvotes: 3

Related Questions