- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- netstat CLOSE_WAIT connection
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2005 01:31 AM
тАО06-30-2005 01:31 AM
I see some CLOSE_WAIT connections for HP Apache on hpux 11.
There are some 7-8 CLOSE_WAIT connection when i issued "netstat -an" command. Are these connections undesirable ?
If yes, how should we close these connections ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2005 01:38 AM
тАО06-30-2005 01:38 AM
Re: netstat CLOSE_WAIT connection
Can you check it out ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2005 01:44 AM
тАО06-30-2005 01:44 AM
SolutionDavid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2005 01:57 AM
тАО06-30-2005 01:57 AM
Re: netstat CLOSE_WAIT connection
The ndd parameter, tcp_time_wait_interval decides how long it will wait in TIME_WAIT.
The default is 60 seconds and looks fine.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2005 05:02 AM
тАО07-01-2005 05:02 AM
Re: netstat CLOSE_WAIT connection
CLOSE_WAIT can be a valid "send only" state, perhaps the client closed-out an http keepalive connection before the server finished sending all the data and then bothered to check for the read return of zero on the socket.
(FWIW, the remote TCP will be in FIN_WAIT_2 - most likely at least. It could I suppose be in FIN_WAIT_1, and depending on how it was written, it could even be completely gone, though that is unlikely, and since there is still a controlling socket on this end, does not represent the same issues as FIN_WAIT_2's have historically)
A handful of these are not likely to be a problem. The way to close them should it become required, would be to terminate the owning process(es).
As possibly already mentioned, CLOSE_WAIT is distinct from TIME_WAIT and tcp_time_wait_interval has no bearing on a connection in CLOSE_WAIT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2005 05:30 AM
тАО07-01-2005 05:30 AM
Re: netstat CLOSE_WAIT connection
Attached is a perl script that you can use to close all the connections that are in CLOSE_WAIT state.
This script uses ndd 'tcp_discon_by_addr' to remove a socket using the ip address represented by a hexadecimal number. It creates a 24 byte string that contains the hex representation of the 'quadruple' IP address Local 'IP+Local Port+Remote IP+Remote Port'.
best of luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2005 05:34 AM
тАО07-01-2005 05:34 AM
Re: netstat CLOSE_WAIT connection
regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2005 05:35 AM
тАО07-01-2005 05:35 AM
Re: netstat CLOSE_WAIT connection
So, before worrying about a CLOSE_WAIT connection, make sure it has been there for a _very_ long time, and even then it may not be a real problem.