Telnet Server example
nino martinez wael
nino.martinez.wael at gmail.com
Wed Jul 14 06:30:31 EDT 2010
Interesting and correct.
Im using the tcpsampler from jmeter. Removing the check in "Re-use
connection", seems to have solved it.
Thanks.
[1]=
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#TCP_Sampler
Regards Nino
2010/7/14 Christian Migowski <chrismfwrd at gmail.com>
> Hello Nino,
>
> > any clue on what's wrong? If you need more information please ask..
>
> presumably nothing. What the exception says is that the client (your
> load testing tool) has closed the connection to the server. You should
> investigate if why it has done so or if this is normal behaviour and
> then modify your server code accordingly (e.g. react to it or ignore
> it).
>
> regards,
> christian!
>
>
> On Wed, Jul 14, 2010 at 11:51 AM, nino martinez wael
> <nino.martinez.wael at gmail.com> wrote:
> > Hi
> >
> > I've been modifying the Telnet Server example a bit. And are now in the
> load
> > testing phase, if I put the server under a little stress something like
> 10
> > concurrent connections I get these exceptions:
> >
> >
> > WARNING: Unexpected exception from downstream.
> > java.nio.channels.ClosedChannelException
> > at
> >
> org.jboss.netty.channel.socket.nio.NioWorker.cleanUpWriteBuffer(NioWorker.java:648)
> > at
> >
> org.jboss.netty.channel.socket.nio.NioWorker.writeFromUserCode(NioWorker.java:369)
> > at
> >
> org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:137)
> > at
> >
> org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:76)
> > at org.jboss.netty.channel.Channels.write(Channels.java:632)
> > at
> >
> org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:70)
> > at org.jboss.netty.channel.Channels.write(Channels.java:611)
> > at org.jboss.netty.channel.Channels.write(Channels.java:578)
> > at
> > org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:258)
> > at
> >
> com.netdesign.sockethttpforwarder.TelnetServerHandler.messageReceived(TelnetServerHandler.java:66)
> > at
> >
> com.netdesign.sockethttpforwarder.TelnetServerHandler.handleUpstream(TelnetServerHandler.java:41)
> > at
> > org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302)
> > at
> >
> org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:76)
> > at
> > org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302)
> > at
> >
> org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:317)
> > at
> >
> org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:299)
> > at
> >
> org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:216)
> > at
> > org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
> > at
> > org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
> > at
> org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349)
> > at
> >
> org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:281)
> > at
> org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:201)
> > at
> >
> org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
> > at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> > at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> > at java.lang.Thread.run(Thread.java:595)
> > 2010-07-14 11:43:49 com.netdesign.sockethttpforwarder.TelnetServerHandler
> > exceptionCaught
> >
> > any clue on what's wrong? If you need more information please ask..
> >
> > regards Nino
> >
> > _______________________________________________
> > netty-users mailing list
> > netty-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/netty-users
> >
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20100714/d6f3ed6f/attachment-0001.html
More information about the netty-users
mailing list