Probably creating the connections too quickly? make the TCP backlog larger. Default is 10 I believe; I use 100 in production.
On Wed, Feb 17, 2016 at 6:44 AM, Liu, Li (Nokia - CN/Hangzhou) < li....@nokia.com> wrote: > Hi Mina > > I try to use Mina to handle multiple TCP’s connections > > But there are some connections that cannot be handled by Mina under lots > of connections was opened as below : > Eg, I try to open 400 TCP’s connections, there are always losing 4 or 5 > connections > > > > [root@twslave2 test]# netstat -natp | grep 62397 > tcp *22* 0 ::ffff:10.70.81.114:65534 ::ffff: > 10.70.81.106:62397 ESTABLISHED - > [root@twslave2 test]# netstat -natp | grep 62398 > tcp 22 0 ::ffff:10.70.81.114:65534 ::ffff:10.70.81.106:62398 > ESTABLISHED - > [root@twslave2 test]# netstat -natp | grep 62399 > tcp 22 0 ::ffff:10.70.81.114:65534 ::ffff:10.70.81.106:62399 > ESTABLISHED - > [root@twslave2 test]# netstat -natp | grep 62400 > tcp 22 0 ::ffff:10.70.81.114:65534 ::ffff:10.70.81.106:62400 > ESTABLISHED - > [root@twslave2 test]# netstat -natp | grep 62401 > tcp 22 0 ::ffff:10.70.81.114:65534 ::ffff:10.70.81.106:62401 > ESTABLISHED - > [root@twslave2 test]# netstat -natp | grep 62396 > tcp 0 0 ::ffff:10.70.81.114:65534 ::ffff:10.70.81.106:62396 > * ESTABLISHED 12152/java* > [root@twslave2 test]# > > Can you tell me why? > >