OutOfMemoryError and GWT - stoicflame/enunciate GitHub Wiki

Note: The following only applies to Enunciate 1.x

OutOfMemoryError and GWT

For GWT users, Enunciate spawns a separate JVM to invoke the GWT compile command on the applications. It's easy to get an OutOfMemoryError when invoking Enunciate. In order to avoid this, you must configure the GWT compile JVM using the gwtCompileJVMArg configuration element:

<enunciate ...>
  ...
  <modules>
    ...
    <gwt>
      <gwtCompileJVMArg value="-Xms128m"/>
      <gwtCompileJVMArg value="-Xmx1024m"/>
    </gwt>
  </modules>
</enunciate>
⚠️ **GitHub.com Fallback** ⚠️