开发者

What should be the maximum number of opened socket on a server?

For a web server, the socket connection are kept alive to save overhead. At which point the server should start to drop connection that doesn't开发者_JAVA百科 have pending request and based on what premises?


Usually this is based on the operating system its self. Optionally to best account for performance, make this value an changeable option. [Put it in a properties file] The amount of connections open depends on your hardware, OS, and lengths of jobs performed by the clients. If the jobs performed by the server are light on network traffic and processing you may be able to get away with the maximum allowed open connections.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜