hi vasudev,
Every time a user hits the webserver, it opens a connection and places it
on the stack. Initially, when it connects the state would be ESTABLISHED
status, when it closes the connection is goes to CLOSE_WAIT connection and
after 3 min it closes the connection before closing it send a FIN_WAIT
status to acknowledge with the server and finally closes the connection.
this is from the man pages on netstat
TCP Sockets
The possible state values for TCP sockets are as follows:
CLOSED Closed. The socket is not being
used.
LISTEN Listening for incoming connections.
SYN_SENT Actively trying to establish con-
nection.
SYN_RECEIVED Initial synchronization of the con-
nection under way.
ESTABLISHED Connection has been established.
CLOSE_WAIT Remote shutdown; waiting for the
socket to close.
FIN_WAIT_1 Socket closed; shutting down con-
nection.
CLOSING Closed, then remote shutdown;
awaiting acknowledgment.
LAST_ACK Remote shutdown, then closed;
awaiting acknowledgment.
FIN_WAIT_2 Socket closed; waiting for shutdown
from remote.
TIME_WAIT Wait after close for remote shut-
down retransmission.
There is one more chances, some application is running on the port 8080, and
waiting for the socket to close. In this situation the process is hung and
need to killed manually to see that it works properly. Usually the Jrun's
runs on the port 8080. Check form the configuration files. If the jrun is
running on PORT 8080, then there are that many jrun process running on the
webserver which is unusual, and jruns simply hungs and no more requests are
accessed for the users.
venkat
>Hi,
>
>[Versions:
> For servlet: Java 1.1.6/JSDK 2.1 on HP-UX 10.20,
> For browser: Netscape Communicator 4.7 on Win NT 4.0 SP3
>]
>On running a servlet that invokes a UNIX command via the Runtime/Process
>classes, in some cases, it works fine. In others, the browser (Netscape
>4.7)
>gives the message "Connect : host <IP address> contacted. Waiting for reply
>..."
>(I'm using the IP address of my UNIX box instead of a hostname in the URL
>for the servlet that I type in the browser).
>When I do a "netstat -a | grep 8080" (the jsdk2.1 servlet runner uses port
>8080),
>I get the following output :
>
>atlas:/appl/jsdk2.1 ->netstat -a | grep 8080
>tcp 0 0 tintin.8080 206.236.140.65.2640
>CLOSE_WAIT
>tcp 0 0 tintin.8080 206.236.140.65.2639
>CLOSE_WAIT
>tcp 0 0 tintin.8080 206.236.140.65.2637
>CLOSE_WAIT
>tcp 0 0 tintin.8080 206.236.140.65.2636
>CLOSE_WAIT
>tcp 0 0 tintin.8080 206.236.140.65.2635
>CLOSE_WAIT
>tcp 0 0 *.8080 *.* LISTEN
>
>
>Can anyone tell me what this output means, particularlt the CLOSE_WAIT ?
>
>I can post more details of the code if needed.
>
>TIA
>Vasudev
>
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>Vasudev Ram
>Infosys Technologies Limited
>Pune, India
>Email : [EMAIL PROTECTED]
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>On a clear day you can see the blue screen of death.
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html