2017-08-08 48 views
0

我在5 TPS下通過Jenkins Job運行Gatling(版本2.2.5)測試時得到以下異常 - rampUsersPerSec(0.1) to 5 during(5 minutes),constantUsersPerSec(5) during(15 minutes),在15分鐘的測試運行後開始異常。Jenkins的加特林運行時異常:java.io.IOException ..現有連接被遠程主機強制關閉

不過,我沒有看到這個異常而測試在0.2 TPS運行 - rampUsersPerSec(0.1) to 0.2 during(5 minutes),constantUsersPerSec(0.2) during(15 minutes)

詹金斯(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) 

回答

0

看來,您使用的端口已被佔用。爲主機或遠程機器提供特定的端口。 歡呼聲, Peekay

相關問題