On 28/07/2017 06:53, Lazar Kirchev wrote:
> Hello,
> 
> I am observing slow shutdown of Tomcat 8 on Windows 10 - some 9 - 11
> seconds. I observed this first with Tomcat 8.5.16, but then checked it on
> older versions and I found the same from 8.5.11 onward. Before that it
> stops for less than a second.
> 
> Most time is spent in stopping the protocol handlers - about 2 seconds for
> each. Profiling shows that the waiting is in the
> java.net.NetworkInterface.getNetworkInterfaces() method in AbstractEndpoint
> class.
> 
> However, one strange thing is that I observe this behavior when I am
> connected to one network, bot on another network the delay is not observed
> and the server stops for less than a second.
> 
> Has anybody experienced similar problems?

That code is there so Tomcat can find the right address to use to unlock
the connector when it is bound to '0.0.0.0' or '::'.

The problems I recall in the past have been around whether that code
identifies the right address to use to unlock the connector. The code
has been tweaked a couple of times to handle those.

The problem you describe appears to be different.

Can you get a stack trace of the thread when it is waiting? That might
shed some light on what is taking so long.

Kind regards,

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to