- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FIN_WAIT_2
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
тАО02-08-2005 07:07 AM
тАО02-08-2005 07:07 AM
I see that this area has been talked about but I would like to get a newer response and one that is geared to my companies enviroment. Here is it goes. We are running an N4000 with HPUX 11 and a legacy system call Universe (aka PICK). We are using the Universe ODBC (UNIObjects) clients on a couple windows servers running .Net applications. When I randomly run 'netstat -na | grep 31438' I see tcp connections from one of the specific windows server where the status remains at FIN_WAIT_2. I have read about using a script to clean up these hung FIN_WAIT_2 and also setting the timeout from 0 to 60 minutes. What is the best approach? Is it something in the .Net application that is not closing correctly? Should I set the time out to 60 minutes? Or use the script to hard kill the hung connections? One last thing, we have another server that run .Net applications making a similar connection and it never leaves these.
Matt
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 07:20 AM
тАО02-08-2005 07:20 AM
Solutionsee this thread: http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xe0d97680e012d71190050090279cd0f9%2C00.html&admit=716493758+1107893897004+28353475
btw, I programmed in pick (Universe) for 10 years.
and get "lsof", as netstat SUCKS: http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.74/
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 07:23 AM
тАО02-08-2005 07:23 AM
Re: FIN_WAIT_2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 07:43 AM
тАО02-08-2005 07:43 AM
Re: FIN_WAIT_2
The sugguestions already given should work well to keep those FIN_WAIT_2s cleaned up. I would recommend trying to identify why the one server is leaving those hanging and the other works fine.
Are both servers running the same application(s)? Are the same users on both servers or are they a different set of users on each server? Perhaps the users on one server are not using it correctly. What about the application revision? Is it the same on both servers?
Just some ideas,
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2005 03:49 AM
тАО02-09-2005 03:49 AM
Re: FIN_WAIT_2
I installed LSOF and when I ran:
lsof -i tcp:31438
I got:
root@tzg # lsof -i tcp:31438
Memory fault(coredump)
Any thoughts? Help.
Matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2005 04:38 AM
тАО02-09-2005 04:38 AM
Re: FIN_WAIT_2
I would suggest you first make sure that the FIN_WAIT_2's are hanging around for longer than tcp_keepalive_detached_interval + tcp_ip_abort_interval before you start altering other timer settings. If the server application is calling close(), the connection becomes "detached" (ie has no associated socket) and after tcp_keepalive_detached_interval, keepalive probes will be sent. Those will likely generate RST's from the windows system if the windows system did an abortive close. That will clear the FIN_WAIT_2.
If there is no response, it will keep sending probes for tcp_ip_abort_interval time units.
If the windows system has not called close, the probes will elicit normal ACKs and it indicates you have buggy windows clients that need to be fixed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2005 06:24 AM
тАО02-09-2005 06:24 AM
Re: FIN_WAIT_2
I had to just do a fresh compile of LSOF and it appears to be working. I have attached the view of two examples of the problem port. The first is a 'netstat -na | grep 31438' the second in 'lsof -i tcp:31438'.
The ones I am interested in are coming from IP 172.28.8.232 in the 'netstat' view, however I am not seeing the information on the 'lsof'. What am I missing? Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2005 06:27 AM
тАО02-09-2005 06:27 AM
Re: FIN_WAIT_2
As such, the tcp_keepalive_detached_interval stuff should kick-in.
Unless we are talking about hundreds adnd thousands of FIN_WAIT_2 connections it really should not be a big dea for the transport. It has good hashes for connection lookup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2005 07:25 AM
тАО02-09-2005 07:25 AM
Re: FIN_WAIT_2
The problem is that those FIN_WAIT_2 have been out there since my last reboot last weekend.
Matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2005 07:33 AM
тАО02-09-2005 07:33 AM
Re: FIN_WAIT_2
(Might want to check that tcp_keepalives_kill is still set to 1)
Again, unless there are thousands of them, it really isn't a big deal - particularly if your server application code is written correctly, setting SO_REUSEADDR before trying to bind() on a restart of the application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2005 10:24 AM
тАО02-09-2005 10:24 AM
Re: FIN_WAIT_2
http://support.microsoft.com/default.aspx?scid=kb;en-us;254930
I have the fix for NT if you need it.
Ron