Increase the number of TCP connections in Windows

Source: Internet
Author: User
Tags websphere application server

Main Methods: tcptimedwaitdelay and maxuserport settings

Description: The time required to release a closed connection and reuse its resources. The time interval between disabling and releasing is generally referred to as the time_wait status or twice the maximum segment lifecycle (2msl) status. During this period, the cost of re-opening a connection to the client and server is less than creating a new connection. Reduce the value of this entry to allow TCP/IP to release closed connections more quickly and provide more resources for new connections. If the running application needs to be quickly released and created, and there are many connections in time_wait, resulting in low throughput, adjust this parameter. How to view or set: Use the Regedit command to access the HKEY_LOCAL_MACHINE/system/CurrentControlSet/services/TCPIP/parameters registry subkey and create a new REG_DWORD value named tcptimedwaitdelay. Set this value to decimal 30, which is hexadecimal 0x0000001e. This value sets the wait time to 30 seconds. Stop and restart the system. Default Value: 0xf0, which sets the wait time to 240 seconds (4 minutes ). Recommended value: the minimum value is 0x1e, which sets the wait time to 30 seconds. Maxuserport Description: determines the maximum port number that a TCP/IP can specify when an application requests an available user port from the system. How to view or set: Use the Regedit command to access the HKEY_LOCAL_MACHINE/system/CurrentControlSet/services/TCPIP/parameters registry subkey and create a new REG_DWORD value named maxuserport. Stop and restart the system. Default Value: No recommended value: At least decimal 32768. Note: When you adjust WebSphere Application Server on a Windows NT or Windows 2000 operating system, both parameters are used.

 

Tcpnumconnections
Item: TCPIP/parameters
Value Type: REG_DWORD-Number
Valid range: 0-0 xfffffe
Default Value: 0 xfffffe
Description: This parameter limits the maximum number of connections that can be opened simultaneously by TCP.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.