FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 03-02-2009, 10:22 AM
Thufir
 
Default tomcat port annoyance: TIME_WAIT

Originally posted to tomcat:
http://article.gmane.org/gmane.comp.jakarta.tomcat.user/178881


All too often I find myself waiting for this:

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


to change to this:

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




--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-02-2009, 01:43 PM
Norberto Bensa
 
Default tomcat port annoyance: TIME_WAIT

On Mon, Mar 2, 2009 at 9:22 AM, Thufir <hawat.thufir@gmail.com> wrote:
> 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.

Does TIME_WAIT cause problems or is just a aesthetic issue?

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-02-2009, 02:23 PM
Thufir
 
Default tomcat port annoyance: TIME_WAIT

On Mon, 02 Mar 2009 12:43:54 -0200, Norberto Bensa wrote:

> On Mon, Mar 2, 2009 at 9:22 AM, Thufir <hawat.thufir@gmail.com> wrote:
>> 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.
>
> Does TIME_WAIT cause problems or is just a aesthetic issue?


Until everything "clears" I cannot run tomcat apps, so it's inconvenient
to say the least. It didn't happen in the past and only started
recently, for reasons which escape me.


-Thufir


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-02-2009, 07:45 PM
Smoot Carl-Mitchell
 
Default tomcat port annoyance: TIME_WAIT

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@arrakis:~$
> thufir@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@arrakis:~$
>
>
> to change to this:
>
> thufir@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@tic.com
+1 480 922 7313
cell: +1 602 421 9005

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-04-2009, 09:01 AM
Thufir
 
Default tomcat port annoyance: TIME_WAIT

On Mon, 02 Mar 2009 13:45:55 -0700, Smoot Carl-Mitchell wrote:

> 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@arrakis:~$
>> thufir@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@arrakis:~$
>>
>>
>> to change to this:
>>
>> thufir@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.



Now I'm getting:

thufir@arrakis:~$
thufir@arrakis:~$ netstat -tan | grep 127
tcp 0 0 127.0.0.1:631 0.0.0.0:*
LISTEN
tcp 0 0 127.0.0.1:48070 127.0.0.1:8080
ESTABLISHED
tcp6 0 0 127.0.0.1:8006 :::*
LISTEN
tcp6 1 0 127.0.0.1:8080 127.0.0.1:48066
CLOSE_WAIT
tcp6 1 0 127.0.0.1:8080 127.0.0.1:33316
CLOSE_WAIT
tcp6 0 0 127.0.0.1:8080 127.0.0.1:48070
ESTABLISHED
tcp6 0 0 127.0.0.1:8080 127.0.0.1:48067
CLOSE_WAIT
tcp6 1 0 127.0.0.1:8080 127.0.0.1:52471
CLOSE_WAIT
thufir@arrakis:~$



I don't think that it's tomcat per se. I think it's netbeans weirdness,
or something to do with my webapp. However, is there some way clear that
out, in any event, so that the ports are free? It's quite a hassle. I'm
going to have to reboot for port 8080 being in use, I think. I can't get
into tomcat manager and the netbeans deployment fails.



-Thufir


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-04-2009, 09:03 AM
Thufir
 
Default tomcat port annoyance: TIME_WAIT

Also:

thufir@arrakis:~$
thufir@arrakis:~$ ping localhost 8080
PING 8080 (0.0.31.144) 56(124) bytes of data.
^C
--- 8080 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4018ms

thufir@arrakis:~$


which just confirms what netstat is saying


-Thufir


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-04-2009, 10:19 AM
Norberto Bensa
 
Default tomcat port annoyance: TIME_WAIT

On Wed, Mar 4, 2009 at 8:03 AM, Thufir <hawat.thufir@gmail.com> wrote:
> Also:
>
> thufir@arrakis:~$
> thufir@arrakis:~$ ping localhost 8080

well... obviously.

ping, pings hosts, not ports :-)


> which just confirms what netstat is saying

it doesn't confirms anything.

is this a server machine? are trying to connect to the tomcat admin
from that machine, or from another?

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-04-2009, 10:41 AM
Norberto Bensa
 
Default tomcat port annoyance: TIME_WAIT

Hello Thufir,

can you refresh my mind?

What version of Ubuntu do you have (gutsy/hardy/intrepid)? 32? 64?
What version of tomcat? java?


Thanks,
Norberto

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 06:52 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org