- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: CLOSE_WAIT Sessions
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
Forums
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
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-12-2003 01:21 AM
тАО06-12-2003 01:21 AM
CLOSE_WAIT Sessions
I am facing excessive close_wait sessions on my apache server and tomcat. Is there any specific reason to it?.
Is there any tcp tunable parameter which would forcefully close such sockets ?. I am suspecious abt the application (apache & tomcat) and my application team is working on it.
What i really need to know is, Is there anything a SysAdmin can do to overcome close_waits sessions ?.
Thanks in advance,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2003 01:27 AM
тАО06-12-2003 01:27 AM
Re: CLOSE_WAIT Sessions
there are many tunable paramenter, you can get a list of there with the tool
ndd -h supported
ndd -h unsupported
will shot you the list of parameters.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2003 01:31 AM
тАО06-12-2003 01:31 AM
Re: CLOSE_WAIT Sessions
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc38585079106d71190050090279cd0f9,00.html
also a good explaination of the behaviour is discussed.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2003 04:01 AM
тАО06-12-2003 04:01 AM
Re: CLOSE_WAIT Sessions
ndd -set /dev/tcp tcp_discon
tcp_discon
This thread provides the complete procedure with some warnings:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa100237a4bc6d611abdb0090277a778c,00.html
A sysadmin can also obtain a copy of 'lsof' and issue this command to further evalutate the problem:
lsof -i tcp:####
lsof -i udp:####
Where #### is the port number in the CLOSE_WAIT state.
'lsof' is an extremely powerful trouble-shooting tool that should be in every sysadmins tool box. Obtain it here:
http://hpux.cict.fr/hppd/hpux/Sysadmin/lsof-4.64/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2003 11:20 PM
тАО06-12-2003 11:20 PM
Re: CLOSE_WAIT Sessions
Cheers .......... Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2003 06:33 AM
тАО06-13-2003 06:33 AM
Re: CLOSE_WAIT Sessions
There is a patch for it but you have to beg MS for it. They never bothered to release it. I have it if you want to try it. It's down at the bottom of my geneology website labeled TCP/IP Patch. http://www.geocities.com/heartland/9670/
You might want to check your network to make sure you are not dropping packets. That's how you usually get stuck in odd states.
Also make sure you have the latest ARPA patches. One of them gives you the ability to ndd the fin_wait_II hold time and it may have other virtues too. We are talking HPUX 11 or better aren't we?
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2003 09:54 AM
тАО06-13-2003 09:54 AM
Re: CLOSE_WAIT Sessions
As for "excessive" I suspect that an HP-UX system could handle thousands and thousands of them without problem. The only problem would be the loss of file descriptors in the applciations, and even if you use the massive tcp_discon kludge (which one should almost _never_ use...) the socket (file descriptor) will still be allocated until the application calls close. So, you still need to get the application to call close()...
If the problem is application restart, then the fix is to make sure the application is setting SO_REUSEADDR before trying to bind().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2003 10:16 AM
тАО06-13-2003 10:16 AM
Re: CLOSE_WAIT Sessions
Is this occurring over SSL? Does the SSL handshake look broken? Like mod_ssl is trying to shake hands with a client, without receiving a client helo?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2003 04:32 AM
тАО07-03-2003 04:32 AM
Re: CLOSE_WAIT Sessions
It appears there's a related bug in Top Hat under Apache.
Since there was no follow up to previous post, I presume the problem spontaneously disappeared.