Solved

Age of TCP CLOSE_WAIT

Posted on 2003-11-10
3
19,392 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

688 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