AGS-如何改变操作系统的'keepalive’设置

原文:http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=25129

HowTo:  Change the operating system's 'keepalive' settings

Software: ArcSDE 3.0, 3.0.1, 3.0.2, 3.0.2.1, 3.0.2.2, 8.0.1, 8.0.2, 8.1, 8.1.2, 8.2, 8.3, 9.0, 9.1, 9.2, 9.3

 

Summary
UNIX,Linux和Windows操作系统用'keepalive’设置,来测试空闲TCP连接和确定他们是否任然是活动状态。默认情况下,'keepalive'被设置为7200000毫秒(两小时)。这意味着每隔两小时服务器计算机ping发出连接的客户计算机,测试空闲TCP连接,如果服务器没有从客户端得到响应,那么'keepalive'终止这个空闲连接。'keepalive'的间隔时间是能够被改变的,通过配置操作系统可以实现从两小时减少到五分钟。

有时候,一个ArcSDE application server connection (gsrvr) 可能在服务器上落后,这可能由于非正常的gsrvr连接关闭引起。如果这种情况发生,操作系统的'keepalive'设置就能够移除这个死gsrvr进程来释放服务器资源。
要一个死gsrvr进程被移除,ArcSDE配置参数‘TCPKEEPALIVE’的值就必须设为TRUE来实现。他实现ArcSDE来检查死gsrvr链接,基于操作系统的keepalive间隔时间设置。
 WARNING: This article contains instructions to make specific changes to essential parts of your operating system. If these specific changes are not done correctly, it may cause serious problems to your computer operating system and files. First, ESRI recommends that you make a complete backup of your system, including the registry, before implementing any of the specific changes. It is highly recommended that you consult with your IT/MIS department, or other qualified computer systems professional before proceeding. ESRI cannot guarantee that you can solve problems that result from incorrect use of the Registry Editor utility. Use the Registry Editor utility at your own risk. Note: your operating system and any subsequent service packs may affect these instructions. These instructions are subject to change without notice.


 Please consult the operating system documentation for more information on making 'keepalive' setting changes.

 

Procedure
Instructions provided describe how to change the operating system's 'keepalive' settings.

  • On Microsoft Windows set KeepAliveTime to 300000.

    /HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/TCPIP/Parameters

    If the KeepAlivetime parameter does not already exist in the above location, create it. The time specified is in milliseconds.
  • On Sun Solaris use the ndd command with the -set option to configure the tcp_keepalive_interval.

    # ndd -set /dev/tcp tcp_keepalive_interval 300000

    The time specified is in milliseconds.
  • On IBM AIX use the no command to set communication parameters.

    no -o tcp_keepidle=591

    The time specified is in halfseconds.
  • On HP HP-UX use

    ndd -set /dev/tcp tcp_time_wait_interval 300000

    The time specified is in milliseconds.
  • On RedHat Linux modify the following kernel parameter by editing the /etc/sysctl.conf file, and restart the network daemon (/etc/rc.d/init.d/network restart).

    # Decrease the time default value for tcp_keepalive_time
    
    tcp_keepalive_time = 1800

 

 

Microsoft Knowledge Base Article - 120642 - TCP/IP and NetBT configuration parameters for Windows 2000 or Windows NT ;

Microsoft Knowledge Base Article - 314053 - TCP/IP and NBT configuration parameters for Windows XP

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值