maybe,you set a lower number to limited open files,  please run "ulimt -n" to 
check out the setting.

TJU.

Sent from my iPhone

> On 2013年9月26日, at 18:40, praveen <developsfuturet...@gmail.com> wrote:
> 
> 
> Hi,
>    I have written the following code and trying to open client socket ports
> but unable to open more than 1000 ports.. The system configuration is 32 GB
> Ram,16 cores Intel processor and OS is windows server 2008.
> 
> 
> IoConnector connector = new NioSocketConnector();
>                            connector.getFilterChain().addLast("codec",new
> ProtocolCodecFilter(new TextLineCodecFactory(Charset.forName("UTF-8"))));
>                            connector.setHandler(new 
> MinaClientHandler_executor("hello server"));
>                            //connector.se
>                            ConnectFuture future = connector.connect(new
> InetSocketAddress(serverIP,serverPort), new
> InetSocketAddress(InetAddress.getLocalHost().getHostAddress(),portNumber));
>                            
>                            future.awaitUninterruptibly(); 
> 
> When I monitored the application through JConsole I observed that for each
> connection 3 threads are getting created. Is there any way to optimize the
> code.. Please help to resolve the issue...
> Thanks in advance...
> 
> 
> 
> 
> --
> View this message in context: 
> http://apache-mina.10907.n7.nabble.com/Unable-to-open-more-than-1000-ports-in-Mina-Client-tp39936.html
> Sent from the Apache MINA User Forum mailing list archive at Nabble.com.

Reply via email to