简体   繁体   English

詹金斯奴隶随机断开与主人的联系

[英]Jenkins Slaves Randomly Disconnect from the Master

I'm currently setting up a vm cluster to run Jenkins for use with a large project, I have jenkins set up, all the VM's are running Windows 7 64-bit with plenty of ram, disk space and the slave agents deployed (running as windows service).I keep getting the following error after a few minutes. 我目前正在设置一个vm集群来运行Jenkins以用于一个大型项目,我已经设置了jenkins,所有的VM都运行Windows 7 64位,并且有大量的ram,磁盘空间和部署的slave代理(运行为Windows服务)。几分钟后我不断收到以下错误。

Connection was broken

java.nio.channels.AsynchronousCloseException
at java.nio.channels.spi.AbstractInterruptibleChannel.end(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at hudson.remoting.SocketChannelStream$1.read(SocketChannelStream.java:33)
at sun.nio.ch.ChannelInputStream.read(Unknown Source)
at sun.nio.ch.ChannelInputStream.read(Unknown Source)
at sun.nio.ch.ChannelInputStream.read(Unknown Source)
at java.io.InputStream.read(Unknown Source)
at sun.nio.ch.ChannelInputStream.read(Unknown Source)
at hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:82)
at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.peek(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at hudson.remoting.Command.readFrom(Command.java:92)
at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:70)
at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

The slaves disconnect for 30 seconds to 2 minutes and then reconnect, the response time also varies wildly between 400ms and 5 seconds. 从机断开30秒到2分钟,然后重新连接,响应时间也在400毫秒到5秒之间变化很大。

The cluster is on its own switch and a ping from any machine returns a < 1ms time. 群集在其自己的交换机上,来自任何计算机的ping返回<1ms时间。

Any help? 有帮助吗?

There are a lot of bugs with the new NIO stuff in the Jenkins slave. Jenkins奴隶中有新的NIO内容有很多错误。 We are experiencing similar serious instability issues up until the latest release at this time of writing. 在撰写本文时,我们遇到了类似的严重不稳定问题。 For example: https://issues.jenkins-ci.org/browse/JENKINS-22758 例如: https//issues.jenkins-ci.org/browse/JENKINS-22758

This posts deserves an update (August 2017): we are running 2.46 now and the slaves are a lot more stable. 这个帖子值得更新(2017年8月):我们现在运行2.46并且奴隶更加稳定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM