MAVEN_OPTS=-Xms128m -Xmx1024m -XX:MaxPermSize=256m
Then in the gwt-maven-plugin configuration I have <extraJvmArgs>-Xmx2048m -Xmx2048m -XX:MaxPermSize=512m</extraJvmArgs>
I've tried several combinations of values here with no luck...with these values...
- When I start the maven command line build the system has about 3GB of memory used
- When it it starts the GWT part of the build its at about 4GB used.
- The I have lots of rebind operations going on generating code...during this time it goes to about 5GB used.
- Then when it hits the permutations step this is where it breaks down...it very quickly goes to about 7.5 GB used. Then I get out of memory errors and the build fails.
So there seems to be a couple of issues, first the GWT compiler doesn't seem to work within the -Xmx2048m value, I used to use -Xmx1024m and it does about the same thing...it uses a lot more memory than that...and then fails. In this case it used 3.5 GB before it failed. And secondly, I can't give GWT more memory because my system doesn't have more to give it...this was with almost all other programs closed...and it still failed.
Does anyone have an idea why my build might be using so much memory and how to limit this?
Btw, at the start of the permutation compile step sometimes it reports 6 permutations and sometimes 12...seems to have the same problem in both cases but I'm not sure why it sometimes has 12 and other times 6.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To post to this group, send email to email@example.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Post a Comment