tomcat port annoyance: TIME_WAIT
Smoot Carl-Mitchell
smoot at tic.com
Mon Mar 2 20:45:55 UTC 2009
On Mon, 2009-03-02 at 11:22 +0000, Thufir wrote:
> Originally posted to tomcat:
> http://article.gmane.org/gmane.comp.jakarta.tomcat.user/178881
>
>
> All too often I find myself waiting for this:
>
> thufir at arrakis:~$
> thufir at arrakis:~$ netstat -tan | grep 127
> tcp 0 0 127.0.0.1:631 0.0.0.0:*
> LISTEN
> tcp6 0 0 127.0.0.1:8005 :::*
> LISTEN
> tcp6 0 0 127.0.0.1:8080 127.0.0.1:36471
> TIME_WAIT
> tcp6 0 0 127.0.0.1:36466 127.0.0.1:8080
> TIME_WAIT
> tcp6 0 0 127.0.0.1:36467 127.0.0.1:8080
> TIME_WAIT
> tcp6 0 0 127.0.0.1:36469 127.0.0.1:8080
> TIME_WAIT
> tcp6 0 0 127.0.0.1:36470 127.0.0.1:8080
> TIME_WAIT
> tcp6 0 0 127.0.0.1:36468 127.0.0.1:8080
> TIME_WAIT
> thufir at arrakis:~$
>
>
> to change to this:
>
> thufir at arrakis:~$ netstat -tan | grep 127
> tcp 0 0 127.0.0.1:631 0.0.0.0:*
> LISTEN
> tcp6 0 0 127.0.0.1:8005 :::*
> LISTEN
TIME_WAIT should not cause a delay in connecting to the listening port.
A TCP connection in that state is waiting an engineered time period to
release the connection, so the connection address does not get reused
and end up receiving packets from the previous connection. There must
be something else going on with your Tomcat configuration.
--
Smoot Carl-Mitchell
Computer Systems and
Network Consultant
smoot at tic.com
+1 480 922 7313
cell: +1 602 421 9005
More information about the ubuntu-users
mailing list