?
Solved

Age of TCP CLOSE_WAIT

Posted on 2003-11-10
3
Medium Priority
?
19,399 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 750 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

The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

Question has a verified solution.

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
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.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

752 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