[Lift] Re: How to prevent OutOfMemory while compiling Lift project?

2009-06-09 Thread sailormoo...@gmail.com
Thanks for the help, the jvmArgs works, and I added Kevin's Suggestions too. On 6月9日, 下午11時54分, David Bernard wrote: > maven fork a new jvm to run scalac (by default) so MAVEN_OPTS is not used to > launch scalac you need to define the  (like David P said) >         >           >             -X

[Lift] Re: How to prevent OutOfMemory while compiling Lift project?

2009-06-09 Thread David Bernard
maven fork a new jvm to run scalac (by default) so MAVEN_OPTS is not used to launch scalac you need to define the (like David P said) -Xmx1024m if you want to customize the jvm args /davidB On Tue, Jun 9, 2009 at 17:45, Kevin Wright wrote: > It might

[Lift] Re: How to prevent OutOfMemory while compiling Lift project?

2009-06-09 Thread Kevin Wright
It might be permgen space, I'm currently using: MAVEN_OPTS=-Xms1024m -Xmx1024m -XX:MaxPermSize=256m -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC *-Xms1024m -Xmx1024m* set the min and max the same, so no dynamic reallocation will happen, should be faster :) *-XX:MaxPermSize=256m* sets the size of

[Lift] Re: How to prevent OutOfMemory while compiling Lift project?

2009-06-09 Thread David Pollak
I don't know if the Maven Scala plugin picks up MavenOpts... please try this in your pom.xml file: org.scala-tools maven-scala-plugin 2.10 compile testCompile