来自Jenkins的Gatling Runtime异常:java.io.IOException ..远程主机强行关闭现有连接

时间:2017-08-08 17:53:11

标签: exception jenkins gatling

我在5 TPS - rampUsersPerSec(0.1) to 5 during(5 minutes),constantUsersPerSec(5) during(15 minutes)通过Jenkins Job运行Gatling(版本2.2.5)测试时得到以下异常,在15分钟的测试运行后开始异常。

但是,当测试以0.2 TPS - rampUsersPerSec(0.1) to 0.2 during(5 minutes),constantUsersPerSec(0.2) during(15 minutes)

运行时,我没有看到此异常

Jenkins(版本2.66)在Windows 7(64位操作系统)上运行,在Tomcat上具有4 GB RAM。

这是此例外的限制和原因吗? 是什么触发了这一点,我如何解决这个问题? 是否有我需要寻找的Gatling Jenkins主机(负载生成器)规范?

感谢您的投入!

22:20:28.946 [DEBUG] i.g.h.a.AsyncHandler - Request
T013_GET_Updates' failed for user 601
java.io.IOException: An existing connection was forcibly closed by the remote host
    at sun.nio.ch.SocketDispatcher.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
    at sun.nio.ch.IOUtil.read(IOUtil.java:192)
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
    at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:221)
    at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:899)
    at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:276)
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:643)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:566)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:480)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:442)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131)
    at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
    at java.lang.Thread.run(Thread.java:748)

1 个答案:

答案 0 :(得分:0)

看来,您正在使用的端口已被占用。获取主机或远程计算机的特定端口。 干杯, Peekay