NIO Client Sockets

2013-10-07 Thread kishore
Hi, I need to open 1 thousand concurrent tcp/ip connections to the remote devices and download some data.This job must be scheduled every 15 minutes.The data size will be nearly 1 to 2MB. Can you please help me with an example of how to open concurrent socket connections to the client. --

Re: NIO Client Sockets

2013-10-07 Thread Emmanuel Lécharny
Le 10/7/13 2:00 PM, kishore a écrit : Hi, I need to open 1 thousand concurrent tcp/ip connections to the remote devices and download some data.This job must be scheduled every 15 minutes.The data size will be nearly 1 to 2MB. Can you please help me with an example of how to open concurrent

Re: NIO Client Sockets

2013-10-07 Thread kishore
Yes i am running an application with a static block as shown below static{ connector = new NioSocketConnector(); connector.getFilterChain().addLast(codec,new ProtocolCodecFilter(new TextLineCodecFactory(Charset.forName(UTF-8; connector.setHandler(new

Re: NIO Client Sockets

2013-10-07 Thread Emmanuel Lécharny
Le 10/7/13 2:56 PM, kishore a écrit : Yes i am running an application with a static block as shown below static{ connector = new NioSocketConnector(); connector.getFilterChain().addLast(codec,new ProtocolCodecFilter(new TextLineCodecFactory(Charset.forName(UTF-8;

Re: NIO Client Sockets

2013-10-07 Thread kishore
I have 32 cores and 48GB ram with windows 2008 operating system and jdk 1.6_38 when i monitor the application it is not using even 15% of the resources -- View this message in context: http://apache-mina.10907.n7.nabble.com/NIO-Client-Sockets-tp40029p40033.html Sent from the Apache MINA