netty大并发请求问题

多线程并发使用同一个channel

java.nio.BufferOverflowException: null

at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:183) ~[na:1.7.0_60-ea]

at java.nio.ByteBuffer.put(ByteBuffer.java:832) ~[na:1.7.0_60-ea]

at org.asynchttpclient.netty.NettyResponse.getResponseBodyAsByteBuffer(NettyResponse.java:81) ~[classes/:na]

at org.asynchttpclient.netty.NettyResponse.getResponseBodyAsBytes(NettyResponse.java:69) ~[classes/:na]

 

请求太多了,导致select key不足??

 

java.net.ConnectException: connection timed out: /192.168.216.11:80

at org.asynchttpclient.netty.channel.NettyConnectListener.onFutureFailure(NettyConnectListener.java:137) [classes/:na]

at org.asynchttpclient.netty.channel.NettyConnectListener.operationComplete(NettyConnectListener.java:147) [classes/:na]

at org.asynchttpclient.netty.channel.NettyConnectListener.operationComplete(NettyConnectListener.java:1) [classes/:na]

at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:680) [netty-common-4.0.29.Final.jar:4.0.29.Final]

at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:603) [netty-common-4.0.29.Final.jar:4.0.29.Final]

at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:563) [netty-common-4.0.29.Final.jar:4.0.29.Final]

at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:424) [netty-common-4.0.29.Final.jar:4.0.29.Final]

at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe$1.run(AbstractNioChannel.java:222) [netty-transport-4.0.29.Final.jar:4.0.29.Final]

at io.netty.util.concurrent.PromiseTask$RunnableAdapter.call(PromiseTask.java:38) [netty-common-4.0.29.Final.jar:4.0.29.Final]

at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:120) [netty-common-4.0.29.Final.jar:4.0.29.Final]

at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:357) [netty-common-4.0.29.Final.jar:4.0.29.Final]

at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) [netty-transport-4.0.29.Final.jar:4.0.29.Final]

at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111) [netty-common-4.0.29.Final.jar:4.0.29.Final]

at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) [netty-common-4.0.29.Final.jar:4.0.29.Final]

at java.lang.Thread.run(Thread.java:745) [na:1.7.0_60-ea]

你可能感兴趣的:(netty)