Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Using netstat command, I got the number of couple of TCP states of connections. But for running websites, how to make meaningful connections between these numbers and the bottleneck/performance of the website?

TIME_WAIT 2363
CLOSE_WAIT 5
FIN_WAIT1 32
FIN_WAIT2 161
ESTABLISHED 643
SYN_RECV 28
CLOSING 1
LAST_ACK 26

Please save the manual-kind links and share some practical knowledge, thanks!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Hopefully this will help, detailed explanation here:-

  • CLOSED Indicates that the server has received an ACK signal (to acknowledge receipt of a packet) from the client and the connection is closed.

  • CLOSE_WAIT Indicates that the server has received the first FIN signal (to acknowledge there is no more data to be sent) from the client and the connection is in the process of closing.

  • ESTABLISHED Indicates that the server received the SYN signal (synchronize, this signal is only sent in the first packet) from the client and the session is established.

  • FIN_WAIT_1 Indicates that the connection is still active but not currently being used.

  • FIN_WAIT_2 Indicates that the client just received acknowledgement of the first FIN signal from the server.

  • LAST_ACK Indicates that the server is in the process of sending it's own FIN signal.

  • LISTENING Indicates that the server is ready to accept a connection.

  • SYN_RECEIVED Indicates that the server just received a SYN signal from the client.

  • SYN_SEND Indicates that this connection is open and active.

  • TIME_WAIT Indicates that the client recognises the connection as active, but not currently being used.

share|improve this answer
    
So 2363 (TIME_WAIT) means 2363 online users at current time? ( They are more or less visiting the website?) –  Jusfeel Feb 19 '12 at 9:25
    
@Jusfeel Well, that's the number of unused connections - given that a http connection is accessing one resource that doesn't really mean users. –  toomanyairmiles Feb 19 '12 at 9:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.