Skip to content

OutOfMemoryError and GWT

Ryan Heaton edited this page Sep 17, 2015 · 1 revision

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>
Clone this wiki locally