You can specify the maximum number of connections that TCP can have open simultaneously by changing the value of the Microsoft Windows TcpNumConnections parameter.
By increasing this value, Java™ can use more TCP connections.
Because each open TCP connection occupies memory (usually both bookkeeping tables and buffer space), fewer TCP connections are available to other processes. However, the memory footprint is a minor concern for enterprise-class servers with large amounts of available RAM.