原文: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
有时候,一个ArcSDE application server connection (gsrvr) 可能在服务器上落后,这可能由于非正常的gsrvr连接关闭引起。如果这种情况发生,操作系统的'keepalive'设置就能够移除这个死gsrvr进程来释放服务器资源。
Procedure
- 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 - 314053 - TCP/IP and NBT configuration parameters for Windows XP