I am working on GWT + NetBeans + Maven project and I keep getting out of memory error. I am running the project simply by executing gwt:debug goal.
I tried to set higher memory limits in pom.xml like this:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt.version}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test</goal>
</goals>
<configuration>
<modules>
<module>cz.bull.iui.User</module>
<!--<module>cz.bull.iui.Login</module>-->
</modules>
<localWorkers>4</localWorkers>
<extraJvmArgs>-Xmx1024M -Xss1024k -XX:MaxPermSize=1024M</extraJvmArgs>
<localWorkers>4</localWorkers>
<draftCompile>true</draftCompile>
<logLevel>INFO</logLevel>
<failOnError>false</failOnError>
<hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp>
<style>OBF</style>
</configuration>
</execution>
</executions>
</plugin>
But the problem still occurs:
Could some advise me, where do I have to set it, so GWT gets enough memory? By checking Task manager I can see Development Mode console is using about 500MB at the occurrence of crash, which is less than defined.