简体   繁体   English

Jenkins奴隶在归档工件时脱机或挂起

[英]Jenkins slaves go offline or hang when archiving artifacts

In the job post build action, am archiving the artifacts. 在作业发布构建操作中,正在归档工件。 90% of the time, when the jenkins job reaches this step, the slave on which it is running hangs (or) goes offline (or) the job hangs and if I kill the job it throws a "Caused by: java.lang.OutOfMemoryError: Java heap space" error. 90%的时间,当jenkins作业到达此步骤时,正在运行其的从属服务器挂起(或)脱机(或)该作业挂起,并且如果我杀死该作业,它将抛出“ Caused by:java.lang。 OutOfMemoryError:“ Java堆空间”错误。

Am running Jenkins ver 1.560. 我正在运行詹金斯版本1.560。

Has anyone seen this or is aware of a fix for this? 有没有人看过或知道此问题的解决方法? Any help is appreciated. 任何帮助表示赞赏。

Thanks 谢谢

It looks like you're running into https://issues.jenkins-ci.org/browse/JENKINS-22734 which started in version 1.560 and will be fixed in 1.563. 您似乎遇到了https://issues.jenkins-ci.org/browse/JENKINS-22734 ,该版本始于1.560版,并将在1.563版中进​​行修复。

It's always a good idea to browse the Jenkins change log , especially the Community Ratings section, when you install a new version. 在安装新版本时,浏览Jenkins更改日志 (尤其是“社区评分”部分)始终是一个好主意。

Whenever Hudson master will run out of space, slaves will disconnect and will have to be restarted. 每当Hudson主服务器空间用尽时,从服务器将断开连接,必须重新启动。

You need to check Hudson master box and see how much space is allocated to the drive where hudson is running. 您需要选中Hudson master框,并查看为hudson运行所在的驱动器分配了多少空间。

Another thing to note is that even if a job is running on slave, artifacts are archived always on master. 要注意的另一件事是,即使作业在从属服务器上运行,工件也总是在主服务器上归档。 So space allocation on master should be done properly. 因此,应正确完成主机上的空间分配。

I ran into this issue with 1.560v of Jenkins. 我遇到了1.560v Jenkins的问题。 Right now I have disabled the archiving of the maven artifacts from the "Build" section. 现在,我已从“构建”部分禁用了Maven工件的归档。 禁用Maven工件归档的屏幕截图

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

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