免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4207 | 回复: 0
打印 上一主题 下一主题

hpux tcp属性. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-05 14:05 |只看该作者 |倒序浏览
如在客户端lsof -p PID.看到大量close_wait的socket. 证明客户端在等服务端的回复.这时候服务端是fin_wait2,客户端是close_wait.  这会占用客户端的打开文件数.  可以修改服务端(如apache2)这台机器的tcp参数,使它fin_wait2的套接字自动关闭.




语法:ndd -set network_device parameter value
EXAMPLES
      To get help information on all supported tunable parameters:
           ndd -h supported
      To get a detail description of the tunable parameter, ip_forwarding:
           ndd -h ip_forwarding
      To get a list of all TCP related parameters:
           ndd -get /dev/tcp ?
      To get the current value of the tunable parameter, ip_forwarding:
           ndd -get /dev/ip ip_forwarding
      To set the value of the default TTL parameter for UDP to 128:
           ndd -set /dev/udp udp_def_ttl 128



bash-2.04# more /etc/rc.config.d/nddconf   
# nddconf:  network tunable parameters for Streams TCP/IP
#
# @(#)B.11.11_LR $Revision: 1.1.119.4 $ $Date: 97/04/23 15:18:44 $
#
# Network tunable parameters read in by the networking startup script -
# /sbin/init.d/net or by executing "ndd -c".
#
# TRANSPORT_NAME:     Name of transport component, valid names are:
#                     ip, tcp, udp, rawip, and arp.
#
# NDD_NAME:           Name of ndd tunable parameter
#
# NDD_VALUE:          Value for ndd tunable parameter
#
# Note: Set all clock time values in milliseconds.  For example,
#        240000 = 4 minutes
#
# Note: The ndd tunable parameters specified in this file must be writable.
#       "ndd -c" can only handle the write operation.
#
# For each additional tunable parameter, add a set of variable assignments
# like the ones below, changing the index to "[0]", "[1]" et cetera.
# Index must be starting from 0 and they must be in sequential order.
# Missing index values inside the array range is not supported.   
#
#
# Example 1: Change the interval for sending the first keepalive probes
#            for idle TCP connection to one hour
# TRANSPORT_NAME[0]=tcp
# NDD_NAME[0]=tcp_keepalive_interval
# NDD_VALUE[0]=3600000
#
#
# Example 2:  Change the interval for sending keepalive probes to 1 minute
#             when TCP is detached. (e.g.FIN_WAIT_2)
# TRANSPORT_NAME[1]=tcp
# NDD_NAME[1]=tcp_keepalive_detached_interval
# NDD_VALUE[1]=60000
#
#
# Example 3:  Change the amount of time TCP endpoints persist in TIME_WAIT
#             state to 30 seconds.  
# TRANSPORT_NAME[2]=tcp
# NDD_NAME[2]=tcp_time_wait_interval
# NDD_VALUE[2]=30000
#
# Example 4:  Change the UDP default ttl parameter to 128
# TRANSPORT_NAME[3]=udp
# NDD_NAME[3]=udp_def_ttl
# NDD_VALUE[3]=128
#
# Example 5: Change the amount of time that ARP entries can stay in
#            ARP cache to 10 minutes.
#
# TRANSPORT_NAME[4]=arp
# NDD_NAME[4]=arp_cleanup_interval
# NDD_VALUE[4]=600000
#
#




bash-2.04# ndd -get /dev/tcp ?
?                             (read only)
tcp_time_wait_interval        (read and write)
tcp_conn_request_max          (read and write)
tcp_debug                     (read and write)
tcp_smallest_nonpriv_port     (read and write)
tcp_ip_abort_cinterval        (read and write)
tcp_ip_abort_interval         (read and write)
tcp_ip_notify_cinterval       (read and write)
tcp_ip_notify_interval        (read and write)
tcp_ip_ttl                    (read and write)
tcp_ip6_hop_limit             (read and write)
tcp_keepalive_interval        (read and write)
tcp_mss_def                   (read and write)
tcp_mss_max                   (read and write)
tcp_mss_min                   (read and write)
tcp_naglim_def                (read and write)
tcp_old_urp_interpretation    (read and write)
tcp_rexmit_interval_initial   (read and write)
tcp_rexmit_interval_max       (read and write)
tcp_rexmit_interval_min       (read and write)
tcp_wroff_xtra                (read and write)
tcp_deferred_ack_interval     (read and write)
tcp_deferred_ack_max          (read and write)
tcp_snd_lowat_fraction        (read and write)
tcp_sth_rcv_hiwat             (read and write)
tcp_sth_rcv_lowat             (read and write)
tcp_dupack_fast_retransmit    (read and write)
tcp_rwin_credit_pct           (read and write)
tcp_rcv_push_wait             (read and write)
tcp_keepalives_kill           (read and write)
tcp_smallest_anon_port        (read and write)
tcp_largest_anon_port         (read and write)
tcp_keepalive_detached_interval(read and write)
tcp_text_in_resets            (read and write)
tcp_xmit_hiwater_def          (read and write)
tcp_xmit_lowater_def          (read and write)
tcp_recv_hiwater_def          (read and write)
tcp_xmit_hiwater_lfp          (read and write)
tcp_xmit_lowater_lfp          (read and write)
tcp_recv_hiwater_lfp          (read and write)
tcp_xmit_hiwater_lnp          (read and write)
tcp_xmit_lowater_lnp          (read and write)
tcp_recv_hiwater_lnp          (read and write)
tcp_rexmit_interval_initial_lnp(read and write)
tcp_syn_rcvd_max              (read and write)
tcp_tw_cleanup_interval       (read and write)
tcp_do_conn_options           (read and write)
tcp_fin_wait_2_timeout        (read and write)
tcp_ts_enable                 (read and write)
tcp_sack_enable               (read and write)
tcp_xmit_hiwater_max          (read and write)
tcp_recv_hiwater_max          (read and write)
tcp_cwnd_initial              (read and write)
tcp_early_conn_ind            (read and write)
tcp_spec_port                 (read and write)
tcp_smoothed_rtt              (read and write)
tcp_status                    (read only)
tcp_discon                    (write only)
tcp_discon_by_addr            (write only)
hatcp_enable                  (read and write)
tcp_isn_passphrase            (read and write)

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/32317/showart_414860.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP