Maximum number of sockets in java

How much is the maximum number of sockets in java under windows? How can I change it?

+4
source share
2 answers

This mainly depends on the maximum number of file descriptors (Windows descriptors) for which the OS is configured. Each open file or socket uses a single file descriptor. For example, on Solaris 65536 is the default value for max fd. Most likely, there are additional files that use the FD pool, therefore limiting the upper limit of sockets if the OS is not configured to increase the number of FD

On Windows NT / 2000 / XP (probably Vista and 7) there should be an entry "FILES =" in \ Windows \ System32 \ config.nt (perhaps also a registry setting?), Which should give you the maximum number of file descriptors.

The following is a more detailed discussion of Windows limitations:

http://blogs.technet.com/markrussinovich/archive/2009/09/29/3283844.aspx

+3
source

It depends on the configuration of your Windows installation. I do not think that Windows has a restriction on a specific process for the number of TCP connections, but there is a system configuration in the registry. Here you can find an article here that describes registry keys.

+1
source

Source: https://habr.com/ru/post/1300085/


All Articles