tomcat port annoyance: TIME_WAIT

Thufir hawat.thufir at gmail.com
Mon Mar 2 11:22:34 UTC 2009


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     
thufir at arrakis:~$ 
thufir at arrakis:~$ 



Now, maybe I'm using tomcat incorrectly, or maybe not.  I'm not sure.  
What I understand is that this "wait" setting might be configurable, but 
I'm not sure how.

I would like to either just automagically fix it by changing a setting, 
or figure out why it occurs.  There are many results in google about 
this, but none that I found were particularly helpful.



thanks,

Thufir







More information about the ubuntu-users mailing list