原文: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