[ERROR] Unexpected internal compiler error java.lang.OutOfMemoryError: Java heap space [ERROR] Out of memory; to increase the amount of memory, use the -Xmx flag at startup (java -Xmx128M ...)
After being annoyed with this problem I ended up patching the GWT4NB plugin module to allow for a Max heap of 512Mb... I did the same for google hosted mode browser thingy - since the hosted mode was also running out of memory. This is now a permanent fix so I no longer have to go and change the ant build file each time I load the project. you can download the module from here: https://secure.lancet.co.za/PathPortal/org-netbeans-modules-gwt4nb_PATCHED_MEMORY_ISSUE.nbm - You'll need to uninstall your previous GWT4NB and install this one afterwards. otherwise if you'd rather do it yourself... then download the GWT4NB module and open it in winrar/some other archiver... find the .jar file (\netbeans\modules\org-netbeans-modules-gwt4nb.jar) and extract and open that in winrar... find the build-gwt.xml file (org\netbeans\modules\gwt4nb\resources \build-gwt.xml)... then make the following changes (note the 512m in both cases and compare to your build file): 1)Fixes memory issue on compile (maxmemory="512m"): <java classpath="${javac.classpath}:${src.dir}" failonerror="true" classname="com.google.gwt.dev.GWTCompiler" fork="true" maxmemory="512m"> 2)Fixes memory issue when loading into google's hosted mode application (-Xmx512m): <property name="gwtshell.jvmargs.base" value="-Xmx512m -Xdebug - Xnoagent -Djava.compiler=none -Xrunjdwp:transport=dt_socket,address=$ {jpda.address.gwt}"/> ...Once you've made the necessary changes, save and overwrite the build-gwt.xml file in the jar archive... then overwrite the jar archive in the nbm archive. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
