What is the maximum number of simultaneous socket connections allowed by Java?

Tim Rohaly

The maximum number of open sockets per process is OS dependent. Java doesn't place a limit on the number of socket connections, but most operating systems do.

In Unix this limit is a configurable parameter. On a desktop it usually is set to a "reasonable" default value, maybe 64. You can view the limit and increase it if necessary by using the shell command "ulimit".

Under Windows, the default limit depends on which version of Windows you are running. It can be changed up to a point by modifying registry values.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact