Solved

Age of TCP CLOSE_WAIT

Posted on 2003-11-10
3
19,368 Views
Last Modified: 2013-12-23
I am aware of how to change the configured CLOSE_WAIT time from its default in Solaris, HPUX, and Linux.  What I would like to know is how can I see how long a socket has been in a CLOSE_WAIT state.
0
Comment
Question by:stewbeast
  • 2
3 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 9719772
For Solaris:

eg:
set the time-out value to 1 minute:

ndd -set /dev/tcp tcp_close_wait_interval 60000
man ndd

to learn more

0
 
LVL 1

Author Comment

by:stewbeast
ID: 9723731
Yes I am aware of the ndd commands, but what if you are analyzing the impact of a new application on a server and you wish to look at the current sockets in a CLOSE_WAIT status ( netstat -a | grep CLOSE_WAIT) and see how long they have been in that state?  If it can't be done, then it can't be done.. but I am curious to know if it is possible to stat this.
0
 
LVL 38

Accepted Solution

by:
yuzh earned 250 total points
ID: 9727681
I think if you app software has keep alive time setting, and you use it, should
be good enough for you.

You can use netstat, lsof, nmap. (lsof and nmap are freeware, you can download
from the web)

eg:
Solaris:  http://sunfreeware.com/

HP-UX:   http://hpux.cict.fr/          (search for lsof, nmap)
             
Have a look at the following UNIX Socket FAQ:

http://www.developerweb.net/sock-faq/
http://www.informatik.hu-berlin.de/~mueller/dsm/kipper.york.ac.uk/vic/sock-faq/html/unix-socket-faq-2.html 
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now