Solved

Age of TCP CLOSE_WAIT

Posted on 2003-11-10
3
19,385 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Connectivity drops 9 68
Apple tv and connecting to wifi 7 51
GET INFO ABOUT WHAT THE PRINTER IS DOING ? 11 69
Network monitoring - have you used Datadog? 7 48
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 …
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
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…
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…

738 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