Configuring Windows for high network connection rates
When a TCP/IP socket is closed, it goes into TIME_WAIT state before closing, for a period of time determined by the operating system. A socket in TIME_WAIT state cannot be reused; this can limit the maximum rate at which network connections can be created and disconnected.
The Java Client application normally closes the socket; if the application is on a different machine from the CICS Transaction Gateway, the limitation usually applies to the machine running the application. The symptoms of a machine that is reaching these limits include:
- All of the TCP/IP resources of the operating system are in use, and requests for new connections fail. This causes JavaGateway open requests to fail intermittently, and throw a java.net.BindException.
- Running the netstat -a command on the application machine shows a large number of sockets in TIME_WAIT state.
- Performance deteriorates.
To improve the ability of the Windows operating system to deal with a high rate of network connections, add the following registry entries in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters
- TcpTimedWaitDelay
- A DWORD value, in the range 30-300, that determines the time in seconds that elapses before TCP can release a closed connection and reuse its resources. Set this to a low value to reduce the amount of time that sockets stay in TIME_WAIT.
- MaxUserPort
- A DWORD value that determines the highest port number that TCP can assign when an application requests an available user port. Set this to a high value to increase the total number of sockets that can be connected to the port.
For example, a system making a large number of connection requests might perform better if TcpTimedWaitDelay is set to 30 seconds, and MaxUserPort is set to 32678. See the operating system documentation for more details.
'OS > WINDOWS' 카테고리의 다른 글
tasklist (0) | 2010.08.06 |
---|---|
윈도우서비스 제거 및 생성 방법 (0) | 2009.07.16 |
그룹 정책 (네트워크 드라이브 연결, 하드 c$ 공유) (0) | 2008.12.05 |
Windows Server 용량 계획하기 - 2 (성능테스트 분석) (0) | 2008.11.10 |
[서버용량계획하기 4] 윈도우 서버 용량 계획하기 (0) | 2008.11.10 |