Question

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:

GWT development Mode console 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.

Was it helpful?

Solution 2

The only good answer is to switch to Eclipse, it just doesn't work with NetBeans.

OTHER TIPS

Please have a look at below link where a lots of the ways are suggested to set the vm arguments in Jetty.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top