HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- TIME_WAIT connections
Operating System - HP-UX
1831622
Members
2245
Online
110027
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-02-2003 05:47 AM
06-02-2003 05:47 AM
TIME_WAIT connections
I have two HP-UX 11.00 servers. In order to be simple, hotsnames for them are:
ota02
ota03
I have in each one a http client. Besides, in ota03 I have a http server.
I can see (netstat -na0 a lot of TIME_WAIT connections.
What could be the problem?
How can I kill such connections?
Thanks in advance
Daniel
ota02
ota03
I have in each one a http client. Besides, in ota03 I have a http server.
I can see (netstat -na0 a lot of TIME_WAIT connections.
What could be the problem?
How can I kill such connections?
Thanks in advance
Daniel
La ignorancia cuesta
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 05:54 AM
06-02-2003 05:54 AM
Re: TIME_WAIT connections
This thread does an excellent job covering the process:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe1b14e49c5cdd5118ff40090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe1b14e49c5cdd5118ff40090279cd0f9,00.html
Support Fatherhood - Stop Family Law
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 12:07 PM
06-02-2003 12:07 PM
Re: TIME_WAIT connections
use ndd to lower your time_wait_interval 60000, the default, is too high.
ndd -get /dev/tcp tcp_time_wait_interval
60000
ndd -set /dev/tcp tcp_time_wait_interval 20000
you can put this into /etc/rc.config.d/nddconf to survive reboots.
ndd -get /dev/tcp tcp_time_wait_interval
60000
ndd -set /dev/tcp tcp_time_wait_interval 20000
you can put this into /etc/rc.config.d/nddconf to survive reboots.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2003 09:02 AM
06-03-2003 09:02 AM
Re: TIME_WAIT connections
Likely as not, there is nothing wrong. TIME_WAIT is perfectly normal for a TCP connection - and lots of them is quite normal when you are running http.
The only reason to shorten the tcp_time_wait_interval would be _in the lab_ when you are trying to do http load testing and have not got a properly written http load generator. Such an improperly written load generator will allow the system to select the client port number and so may run into issues with reuse of a TCP connection name (local/remote IP, local/remote port) within the TIME_WAIT interval.
The "proper" way to deal with this is to make sure that the load generator makes an explicit call to bind() with port numbers in the range of say 5000 to 65535. This will then allow that one load generating IP to generate as many as (maxclientport-minclientport)/time_wait_interval - (65535-5000)/60 or 1000 connections per second.
If the load generator relies on the default anonymous/ephemeral port range (what the stack uses when you don't call bind()) then the rate cap per load generating IP would be (65535-49152)/60 or ~270 connectoins per second.
If you cannot get the load generator coded correctly, then the first workaround would be to change the values of tcp_smallest_anon_port rather than change the tcp_time_wait_interval.
And under no circumstances should one start using that ndd kludge to start terminating connections...certainly, not in a situation like this. HP-UX 11 does quite well with hundreds of thousands of TIME_WAIT connections.
The only reason to shorten the tcp_time_wait_interval would be _in the lab_ when you are trying to do http load testing and have not got a properly written http load generator. Such an improperly written load generator will allow the system to select the client port number and so may run into issues with reuse of a TCP connection name (local/remote IP, local/remote port) within the TIME_WAIT interval.
The "proper" way to deal with this is to make sure that the load generator makes an explicit call to bind() with port numbers in the range of say 5000 to 65535. This will then allow that one load generating IP to generate as many as (maxclientport-minclientport)/time_wait_interval - (65535-5000)/60 or 1000 connections per second.
If the load generator relies on the default anonymous/ephemeral port range (what the stack uses when you don't call bind()) then the rate cap per load generating IP would be (65535-49152)/60 or ~270 connectoins per second.
If you cannot get the load generator coded correctly, then the first workaround would be to change the values of tcp_smallest_anon_port rather than change the tcp_time_wait_interval.
And under no circumstances should one start using that ndd kludge to start terminating connections...certainly, not in a situation like this. HP-UX 11 does quite well with hundreds of thousands of TIME_WAIT connections.
there is no rest for the wicked yet the virtuous have no pillows
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP