- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to release sockets
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
02-28-2006 09:22 PM
02-28-2006 09:22 PM
How to release sockets
We have a parameter system which lasts more than 15 minute so that the system releases the socket after 15 minutes (for Aix the parameter is closed wait), it is a parameter of the core of HPUX system. We want to reduce this default value to have a maximum of 2 or 4 seconds .
Please help you have a solution for this problem
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2006 09:46 PM
02-28-2006 09:46 PM
Re: How to release sockets
Should be ndd
see man ndd
The parameter tcp_keepalive_interval determines the amount of time that TCP waits for an idle connection with no unacknowledged data before sending keepalive packets.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2006 09:47 PM
02-28-2006 09:47 PM
Re: How to release sockets
Try ..
ndd â  set /dev/tcp tcp_fin_wait_2_timeout 60000
To make the change permanent:
Modify /etc/rc.config.d/ndd.conf by adding the following line:
TRANSPORT_NAME[0]=tcp
NDD_NAME[0]=tcp_fin_wait_2_timeout
NDD_VALUE[0]=60000
make sure .. the 0 in [0] is repalced by the last number that follows the existing sequence.
60000 millisec = 1 minute.
regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2006 10:16 PM
02-28-2006 10:16 PM
Re: How to release sockets
I do not remember any tunable parameter for CLOSE_WAIT, I had to write a ndd script to kill sockets in CLOSE_WAIT...
Attached a simple TCP connection diagram.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2006 10:24 PM
02-28-2006 10:24 PM
Re: How to release sockets
please replace use tcp_time_wait_interval instead of tcp tcp_fin_wait_2_timeout ,
so the actual procedure should be..
ndd -set /dev/tcp tcp_time_wait_interval 60000
To make the change permanent:
Modify /etc/rc.config.d/ndd.conf by adding the following line:
TRANSPORT_NAME[0]=tcp
NDD_NAME[0]=tcp_time_wait_interval
NDD_VALUE[0]=60000
make sure .. the 0 in [0] is repalced by the last number that follows the existing sequence.
60000 millisec = 1 minute.
regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2006 11:28 PM
02-28-2006 11:28 PM
Re: How to release sockets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2006 12:54 PM
03-01-2006 12:54 PM
Re: How to release sockets
tcp_keepalive_interval is how long before keepalives start on an established connection, it will wait tcp_ip_abort_interval for a reply to the keepalive probes.
tcp_keepalive_detached_interval is how long before keepalives start on a connection on which the user has called close() - this is to cull FIN_WAIT_2 connections without IIRC having to resort to the kludge of the fin_wait_2 timeout
if the problem is connections in TIME_WAIT, the solution is NOT to reduce TIME_WAIT but to increase the number of ports being used
please try to be a bit more specific about what you want to do
ftp://ftp.cup.hp.com/dist/networking/briefs/annotated_ndd.txt