- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Impact of socket caching to CLOSE_WAITs
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
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
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
11-20-2008 02:52 AM
11-20-2008 02:52 AM
Impact of socket caching to CLOSE_WAITs
our application does not close sockets when they are being opened and closed in a very short time (within one milisecond). This faulty behaviour of the application causes under those circumstances many sockets remaining forever in CLOSE_WAIT status.
The application will be definitely fixed, but meantime I am thinking of a workaround. Would enabling socket caching (e.g. "ndd -set /dev/sockets socket_caching_tcp 512" or set it permanently under/etc/rc.config.d/nddconf) help somehow? Now the hashing is disabled.
Thanks in advance for your answers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2008 03:11 AM
11-20-2008 03:11 AM
Re: Impact of socket caching to CLOSE_WAITs
The default behavior for applications not active is 60 seconds.Is the application somehow still active?
To provide guidance on your parameter, change would require a look at your nddconf file.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2008 03:15 AM
11-20-2008 03:15 AM
Re: Impact of socket caching to CLOSE_WAITs
The application is still alive, accepting new TCP connections, also dropping them etc. The only problem is that under some circumstances it forgets to drop a TCP connection.
nddconf (without commented lines):
TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_ire_gw_probe
NDD_VALUE[0]=0
TRANSPORT_NAME[1]=tcp
NDD_NAME[1]=tcp_keepalive_interval
NDD_VALUE[1]=120000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2008 04:34 PM
11-20-2008 04:34 PM
Re: Impact of socket caching to CLOSE_WAITs
I believe socket caching will not affect your situation one way or the other.
Short of terminating and relaunching processes, the only other recourse until you can get your application fixed _might_ be the tcp_discon kludge.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2008 06:00 AM
11-21-2008 06:00 AM
Re: Impact of socket caching to CLOSE_WAITs
Socket caching will not help, at all.
If the symptom you have is that you can't get any more fildescriptor, then ndd tcp_discon_by_addr will be of no help,
If the symptom you have is that all ephemeral ports - or anonymous ports- are used - ports between 49152 and 65535-
- ports between , then tcp_discon_by_addr can help, if you can identify the socket you should close. Or the other solution would be in that case to raise the number of ephemeral ports lowering tcp_smallest_anon_port.
- don't lower it too much-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2008 05:58 AM
11-26-2008 05:58 AM