I am developing an application server that is using netty 3.6.5. I would like to first understand the full meaning of the option backlog. Also why is there no documentation about the serverbootstrap options to help we developers.
My other question is how best I can limit the number of concurrent connections to the server for better performance.
Thank you.
To limit the number of concurrent connections to your server - on a UNIX system - you can set the ulimit on file descriptors before running the application, and, once all descriptors are open, other clients will be unable to connect.
To get the number of allowed file descriptors, exec $ ulimit -n
as the user running the process. See man ulimit
for more info.
See zhqauke's answer regarding ServerBootstrap.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With