Try increasing the backlog on the acceptor.

Sent from my iPhone

> On Sep 30, 2013, at 10:31 AM, praveen <developsfuturet...@gmail.com> wrote:
> 
> Hi,
> 
> I have the same problem with the mina server. I am running on windows 2008
> with 32 cores.Once the connections is established i need to send the reply
> back in 3 seconds .But when 1000 clients connect simultaneously more than
> 50% of the connections will not respond with in 3 seconds and so the
> connection is closed by the client.
> 
> I tried increasing the NIOProcess to 200 but still the same problem exists.
> 
> Below is the code 
> 
> IoAcceptor acceptor = new NioSocketAcceptor(200);
>        acceptor.getFilterChain().addLast("logger", new LoggingFilter());
>        acceptor.getFilterChain().addLast("codec", new ProtocolCodecFilter(new
> HexBytesProtocolfactory(Charset.forName("UTF-8"))));
>        acceptor.setHandler(new MinaServerHandler(errorHexcodeList,
> errorDescList));
>        acceptor.bind(new InetSocketAddress(this.portNo.intValue()));
>        logger.debug("Server started on port " + this.portNo + "......");
>        logger.info("Server started on port " + this.portNo + "......");
>        acceptor.getSessionConfig().setReadBufferSize(2048);
>        acceptor.getSessionConfig().setIdleTime(IdleStatus.READER_IDLE, 10);
>        acceptor.getSessionConfig().setIdleTime(IdleStatus.BOTH_IDLE, 60);
> 
> Can you help me please .Its very urgent
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://apache-mina.10907.n7.nabble.com/Unable-to-open-more-than-1000-ports-in-Mina-Client-tp39936p39960.html
> Sent from the Apache MINA User Forum mailing list archive at Nabble.com.

Reply via email to