- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- TIME_WAIT
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
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
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
тАО10-31-2001 10:02 AM
тАО10-31-2001 10:02 AM
Can any one tell me how to kill the TIME_WAIT connections on HP-UX 11.0.
I read some where that the performance goes down if the time_wait are numerous.
I am running a netscape web-server on HP-UX 11
Command used:netstat -a
Cheers,
Nag
Happy Halloween :-:
|
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2001 10:05 AM
тАО10-31-2001 10:05 AM
Re: TIME_WAIT
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2001 10:14 AM
тАО10-31-2001 10:14 AM
Solutionto set time_wait on 11.00
do -
ndd -get /dev/tcp tcp_time_wait_interval
-> this shows your current setting.
To change it
ndd -set /dev/tcp/tcp_time_wait_interval
to make it permanent
change the setting in
/etc/rc.config.d/nddconf
If you want to disconnect
any existing TIME_WAIT sessions:
ndd -get /dev/tcp tcp_status >outfile
check the outfile for the
remote Ip' connections you
want to be disconnected.
Not the first column (TCP)
then, do
ndd -set /dev/tcp tcp_discon 0xfirstcolumn.
(Make sure of the connection
before you do this!).
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2001 10:35 AM
тАО10-31-2001 10:35 AM
Re: TIME_WAIT
(3990)
This is the line form the output file ,
but however if i perform this command, it give me ndd -set /dev/tcp tcp_discon 0cc.034.176.210
"operation failed, Invalid argument"
Raj any comments where i have done a mistake,
Thank you for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2001 10:44 AM
тАО10-31-2001 10:44 AM
Re: TIME_WAIT
nagendra,
You used the second column, try the first column:
ndd -set /dev/tcp tcp_discon 0fd823e8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2001 10:46 AM
тАО10-31-2001 10:46 AM
Re: TIME_WAIT
Have a look at these two threads. They might help.
http://us-support.external.hp.com/cki/bin/doc.pl/sid=8388d5851548343cd1/screen=ckiDisplayDocument?docId=200000042082709
http://us-support.external.hp.com/cki/bin/doc.pl/sid=8388d5851548343cd1/screen=ckiDisplayDocument?docId=200000056429107
hope it helps.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2001 11:46 AM
тАО11-01-2001 11:46 AM
Re: TIME_WAIT
i would be very cautious about messing with tcp_time_wait_interval. TIME_WAIT is in TCP for a specifici purpose - part of its protection against data corruption.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2001 01:31 PM
тАО11-01-2001 01:31 PM
Re: TIME_WAIT
Care to give any advice on tuning tcphashsz ;-):
-- tcphashsz
The size of the hash table for TCP connections is determined by the
kernel parameter tcphashsz. This kernel parameter should only be
modified under the direction of Hewlett-Packard.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2001 02:02 PM
тАО11-01-2001 02:02 PM
Re: TIME_WAIT
I'm surprised the wording is as strong as it is. Tpchashsz is something we've been tuning on most of our SPECweb9X submittals with HP-UX 11 for years and years now.
I guess some of it stems from ifyou make tcphashsz too big your kernel might not boot :)
Basically, tcphashsz controls the sizes of a number of internal TCP hash tables.
If the cut and paste works, what follows is a descrpition. I thought it was online at www.spec.org someplace as part of a SPECweb submittal but could not find it.
There are seven dynamically allocated hash lists in TCP and IP. The sizes
of these lists are controlled by the HP/UX configuration variable
tcphashsz. Since this single variable controls the size of multiple
lists, it is treated as a relative scale factor, rather than as the
actual size of any specific list. The relative sizes of the individual
lists are fixed. The absolute sizes are determined by the product of
the scale factor and the relative size.
The seven hash lists are:
ipc_tcp_fanout IP's list of all established TCP connections.
ipc_tcp_listeners IP's list of all TCP listeners.
ipc_udp_fanout IP's list of all bound UDP streams.
tcp_port_hash_arr All TCP's by local port.
tcp_listener_hash_arr All TCP listeners by port.
tcp_establshd_hash_arr All established TCP connections.
tcp_lock_list TCP's distributed lock list.
When allocating the above hash lists, the value of the HP/UX configuration
variable tcphashsz is first rounded down to the next lowest power of two.
It is then bounded on the low side at 64 and on the high side at 64K.
If tcphashsz is specified as zero, a default value of 2048 is used.
If we use 'A' to indicate the value of the resulting scale factor, the
following table lists the actual sizes of the allocation, in words, for
each of the seven lists:
ipc_tcp_fanout A / 2
ipc_tcp_listeners A / 4
ipc_udp_fanout A / 4
tcp_port_hash_arr A
tcp_listener_hash_arr A / 4
tcp_establshd_hash_arr A / 2
tcp_lock_list A / 16
The following table gives actual list sizes, in words, and total space
allocated, in bytes, for several example values of tcphashsz:
64 256 2048 16K 32K 64K
-----------------------------------------------------------------------
ipc_tcp_fanout 32 128 1024 8192 16K 32K
ipc_tcp_listeners 16 64 512 4096 8K 16K
ipc_udp_fanout 16 64 512 4096 8K 16K
tcp_port_hash_arr 64 256 2048 16K 32K 64K
tcp_listener_hash_arr 16 64 512 4096 8K 16K
tcp_establshd_hash_arr 32 128 1024 8192 16K 32K
tcp_lock_list 4 16 128 1024 2K 4K
-----------------------------------------------------------------------
total space (in bytes) 720 2880 23040 184320 368640 737280
I've no idea if it will format well, so I'll try to have a copy at ftp://ftp.cup.hp.com/dist/networking/briefs/tcphashsz.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2001 03:03 PM
тАО11-01-2001 03:03 PM
Re: TIME_WAIT
ndd -set /dev/tcp tcp_discon_by_addr "ac1816585ba0ac184483564"
When you do a netstat -a, you get something like this :
tcp 0 0 172.24.22.42.58843 143.101.94.40.9102 TIME_WAIT
tcp 0 0 172.24.22.42.58842 143.101.94.55.9100 TIME_WAIT
You must convert the IP notation to hexadecimal format.
So 172.24.22.42.58842 is "ac18162ae5da" you must put a 0 between the first set of hexadecimal numbers (IP + Port #) and the second set of hexadecimal numbers..
The scientific desktop calculator can be used to do this or you can search www.google.com for Feel The Base, an IP to hexadecimal converter..
Hope this helps..
DCJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2001 03:14 PM
тАО11-01-2001 03:14 PM
Re: TIME_WAIT
If the local side is in CLOSE_WAIT, the other side is likely in FIN_WAIT_2. Given that FIN_WAIT_2 can be a perfectly valid recv-only state, CLOSE_WAIT can be a perfectly valid send-only state.
so, i would really strongly caution anyone against using that ndd kludge to sumarily nuke a TCP connection.
if the connection is in CLOSE_WAIT and the app has no concept of a send-only connection, the app is buggy and is ignoring the remote close indication. such an app REALLY needs to be fixed. the ndd junk is merely a bandaid and it will not cure the disease.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2001 03:19 PM
тАО11-01-2001 03:19 PM
Re: TIME_WAIT
the units are _milliseconds_ not seconds.
another reason the default TCP timers should be left along I supose :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2002 07:00 AM
тАО05-09-2002 07:00 AM