Prompt on windows that the tomcat port is occupied but netstat cannot find the process

the 2012 R2 http-nio Tomcat 8.5 zip, application has been running for some time, but occasionally stops and then restarts, indicating that the http-nio port has been occupied by the, BindException already in use.
changes the server.xml port number to start normally.

the probability of occurrence is extremely low, about single digits

netstat-ano does not show the port
solve after restarting os

not sure if it has anything to do with command line / service mode.

Mar.29,2021

first confirm that the old process is over before restarting.

by default, the TCP port needs to wait a period of time (TIME_WAIT) from closing to reopening, during which time the port cannot be used.
for more information, please refer to the TCP standard document https://tools.ietf.org/html/r.

.

take the Windows operating system as an example, you can reduce the wait time by modifying the TcpTimedWaitDelay registry value, which defaults to 240s (4 minutes) and the registry path HKLM\ SYSTEM\ CurrentControlSet\ Services\ Tcpip\ Parameters .

Menu