在 JENKINS 上处理泄漏的文件描述符错误 [英] Process leaked file descriptors error on JENKINS
问题描述
当我将作业配置为停止和启动 tomcat 服务器时出现此错误:
I am getting this error when I configured a job to do stop and start of tomcat server:
处理泄露的文件描述符.参见 http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build 了解更多信息
Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more information
当我用谷歌搜索时,我得到了一个推荐的解决方案 set BUILD_ID=dontKillMe
这是确切的解决方案吗?
如果是,我需要在哪里设置 BUILD_ID?在 ant/post 构建脚本中?
任何人都可以澄清这一点吗?
When i googled it, i got a recommended solution as set BUILD_ID=dontKillMe
Is this the exact solution?
If yes, where do I need to set BUILD_ID? Inside ant/post build script?
Can anyone please clarify this?
推荐答案
Yes, created fake BUILD_ID
for process 告诉 Jenkins 在检测生成的进程期间忽略这个进程,所以这个进程不会被杀死完成工作.
Yes, creating fake BUILD_ID
for process tells Jenkins to ignore this process during detection spawned processes, so this process will be not killed after finishing job.
用法:在命令前输入BUILD_ID=dontKillMe
,例如进入Execute shell
构建步骤:
Usage: Enter BUILD_ID=dontKillMe
before your command, for example into Execute shell
build step:
BUILD_ID=dontKillMe nohup ./yourStartScript.sh &
注意:另见nohup
这篇关于在 JENKINS 上处理泄漏的文件描述符错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!