Try changing localWorkers to 1?

On Thursday, February 23, 2023 at 9:14:03 AM UTC-5 Alaa Humaidat wrote:

> I'm working on upgrading an  app that uses GWT and embedded jetty server 
> from java 8 to java 11. The app was working fine with jetty 9, GWT 2.10.0 
> before the upgrade. After upgrading to java 11- Jetty 11, the compilation 
> for GWT got stuck.
>
> I removed all unused dependencies, upgraded existing ones to their latest 
> version (compatible with Java11), tried to increase Xmx and Xss for the 
> compilation target, and tried to add workers, but nothing worked.
>
> I used `jstack` to check the processes threads, which showed a deadlock 
> (result attached).
>
> Below is the ant target I'm using to build GWT:
>
> ```
> <target name="compile.gwt" description="build applications" 
> depends="compile">
>         <java jvm="${home}/apps64/java11/bin/java" failonerror="true"
>               classname="com.google.gwt.dev.Compiler"
>               fork="true"
>               output="build.log">
>             <classpath>
>                 <path refid="local.class.path"/>
>             </classpath>
>             <jvmarg line="-Xmx1024M"/>
>             <jvmarg line="-Xss16M"/>
>             <arg value="-style"/>
>             <arg value="DETAILED"/>
>             <arg value="-localWorkers"/>
>             <arg value="16"/>
>             <arg value="-logLevel"/>
>             <arg value="DEBUG"/>
>             <arg value="-optimize"/>
>             <arg value="5"/>
>             <arg value="com.automation.core.ds"/>
>         </java>
>     </target>
> ```
>
> How can I fix that?
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/14997f90-e702-4883-92a4-e72e25744b44n%40googlegroups.com.

Reply via email to