Hello,
If you still face this issue with latest JVM and MINA version, I suggest that you get a threaddump of the process (with JVM's jstack) and a netstat/fuser showing the number of open sockets/file descriptors - then we'll have more data to help you. Cheers, David 2011/8/15 Sariny <[email protected]> > Thanks for your advice , I'll try > > > for instance, do you have a firewall in front of your server ? > No,iptables is stopped > > How many concurrent clients do you have ? > about 2-3 concurrent connections usually, and may burst to 500 or even more > > What's the number of incoming connection you are processing per second. > 80 on average, maxium up to 800 > > Is it something you can reproduce, or is it totally random ? > seems random > > How many sockets are opened when you detect the problem (incidentally, do > you have a low ulimit setting ?) > ulimit is definitely ok , I used to meet ulimit problems when doing > benchmark, so this was solved already. > > > > ============== > > >On 8/15/11 10:07 AM, Sariny wrote: > >> Sorry, > >> > >> Mina : 2.0.3 > >> OS : CentOS 5.3 x86_64 > >> Kernel: 2.6.18-128.el5 > >> > >> JVM info: > >> java version "1.6.0_22" > >> Java(TM) SE Runtime Environment (build 1.6.0_22-b04) > >> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode) > > > >Thanks. I would advise you to upgrade to MINA 2.0.4, and to Java > >1.6.0_26. Not that it would solve your issue, but Java 1.6.0_22 is known > >to have issues with NIO. > > > >Now, regarding your issue, it's difficult to tell what could be wrong. > >What would help is a bit more description of what's going on when you > >detect taht the server does not accept incoming connections. Like, for > >instance, do you have a firewall in front of your server ? How many > >concurrent clients do you have ? What's the number of incoming > >connection you are processing per second. Is it something you can > >reproduce, or is it totally random ? How many sockets are opened when > >you detect the problem (incidentally, do you have a low ulimit setting ?) > > > > > >-- > >Regards, > >Cordialement, > >Emmanuel Lécharny > >www.iktek.com > > > > = = = = = = = = = = = = = = = = = = = = > > > On 8/15/11 10:07 AM, Sariny wrote: > > Sorry, > > > > Mina : 2.0.3 > > OS : CentOS 5.3 x86_64 > > Kernel: 2.6.18-128.el5 > > > > JVM info: > > java version "1.6.0_22" > > Java(TM) SE Runtime Environment (build 1.6.0_22-b04) > > Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode) > > Thanks. I would advise you to upgrade to MINA 2.0.4, and to Java > 1.6.0_26. Not that it would solve your issue, but Java 1.6.0_22 is known > to have issues with NIO. > > Now, regarding your issue, it's difficult to tell what could be wrong. > What would help is a bit more description of what's going on when you > detect taht the server does not accept incoming connections. Like, for > instance, do you have a firewall in front of your server ? How many > concurrent clients do you have ? What's the number of incoming > connection you are processing per second. Is it something you can > reproduce, or is it totally random ? How many sockets are opened when > you detect the problem (incidentally, do you have a low ulimit setting ?) > > > -- > Regards, > Cordialement, > Emmanuel Lécharny > www.iktek.com > >
