Network Deployment (Distributed operating systems), v8.0 > Tune performance > Tune the application serving environment > Tune operating systems
Tune Windows systems
This topic describes how to tune Windows XP, Windows 2003, Windows 2008 and Windows Vista operating systems to optimize the performance of WAS. Because Windows operating systems are not WAS products, be aware that the products can change and results can vary. When we have a performance concern, check the operating system settings to determine if they are appropriate for the application.
Procedure
Configure the following settings or variables according to your specific tuning needs:
- TcpTimedWaitDelay
- Description: Determines the time that must elapse before TCP/IP can release a closed connection and reuse its resources. This interval between closure and release is known as the TIME_WAIT state or twice the maximum segment lifetime (2MSL) state. During this time, reopening the connection to the client and server costs less than establishing a new connection. By reducing the value of this entry, TCP/IP can release closed connections faster and provide more resources for new connections. Adjust this parameter if the running application requires rapid release, the creation of new connections, or an adjustment because of a low throughput caused by multiple connections in the TIME_WAIT state.
- To set...
- Use the regedit command, access the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Services\TCPIP\Parameters registry subkey, and create a new REG_DWORD value named TcpTimedWaitDelay.
- Set the value to decimal 30, which is Hex 0x0000001e. This value sets the wait time to 30 seconds.
- Stop and restart the system.
Default:
0xF0, which sets the wait time to 240 seconds (4 minutes).
- Recommended value: A minimum value of 0x1E, which sets the wait time to 30 seconds.
- MaxUserPort This setting is not needed for the Windows 2008 and Windows Vista operating systems. The default start port for these operating systems is 49152, and the default end port is 65535. See the Microsoft Support web site for more information.
- Description: Determines the highest port number that TCP/IP can assign when an application requests an available user port from the system.
- To set...
- Use the regedit command, access the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Services\TCPIP\Parameters registry subkey, and create a new REG_DWORD value named MaxUserPort.
- Set this value to at least decimal 32768.
- Stop and restart the system.
Default:
None
- Recommended value: At least decimal 32768.
- MaxConnect Backlog
- Description: If many connection attempts are received simultaneously, increase the default number of pending connections that are supported by the operating system.
- To set...
- Use the regedit command and access the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters registry subkey
- Create, if necessary, and set the following values:
"EnableDynamicBacklog"=dword:00000001 "MinimumDynamicBacklog"=dword:00000020 "MaximumDynamicBacklog"=dword:00001000 "DynamicBacklogGrowthDelta"=dword:00000010- These values request a minimum of 20 and a maximum of 1000 available connections. The number of available connections is increased by 10 each time that there are fewer than the minimum number of available connections.
- Stop and restart the system.
- TPC/IP acknowledgements
TCP/IP can be the source of some significant remote method delays. We can increase TCP performance by immediately acknowledging incoming TCP segments, in all situations.
To immediately acknowledge incoming TCP segments on a server that runs a Microsoft Windows XP or Windows Server 2003 operating system:
- Start the Registry Editor (regedit.exe).
- Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\
- On the Edit menu, click New > DWORD Value.
- Name the new value, TcpAckFrequency, and assign it a value of 1.
- Close the Registry Editor.
- Restart your Windows operating system.
- Large page support
- Description: Using large pages can reduce the CPU overhead of managing a large JVM heap.
- To set...
The Windows operating system provides large page support by default. Use the -Xlp JVM option to make use of this support.
Results
This tuning procedure improves performance of WAS on Windows XP, and Windows 2003 operating systems.
What to do next
After tuning your operating system for performance, consult other tuning topics for various tuning tips.
Tune Linux systems
Tune AIX systems
Tune Solaris systems
Tune HP-UX systems