tomcattomcat9ajp

Tomcat9 does not respond


We have a strange issue since upgrading from tomcat8 to tomcat9.

There are no helpful log entries in catalina.out or other app log files.

Our very only suspicion is that it occurs mainly when hot deploying war files (moving war files to the apps folder without stopping/starting tomcat9). In contrast - hot deploying was never a problem on tomcat8.

Maybe this is an ajp issue? Here is our connector config:

<Connector
        port="8009"
        protocol="org.apache.coyote.ajp.AjpNio2Protocol"
        acceptCount="200"
        acceptorThreadCount="2"
        address="0.0.0.0"
        connectionTimeout="1800000"
        maxThreads="400"
        minSpareThreads="20"
        secretRequired="false"
        redirectPort="8443" />

I found some (maybe) related issue here: tomcat hangs when deploying war file and restarting server

The folks over there state that they stop the tomcat, deploy the war, then start the tomcat again.

Anyone with the same issue since upgrading to tomcat9?


Solution

  • So it seems that the hot deployment on tomcat9 is somehow causing the freeze. The last three deployments were done like the following:

    Up to now we faced no more freezes.
    So i suggest that hot deployment on tomcat9 (maybe in conjunction with java11 being also updated) causes freezes.

    This solution is working for us.