jenkins 的dns 异常导致日志撑爆服务器

Jenkins 的tomcat 日志基本都是说dns 的问题:

   question:      [DNSQuestion@251754929 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
        question:      [DNSQuestion@515297623 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
        question:      [DNSQuestion@1774851545 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
        question:      [DNSQuestion@72039330 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
       

google一下,需要在jenkins tomcat 的bin目录的catalina.sh 执行命令的时候添加

export JAVA_OPTS="-Dhudson.DNSMultiCast.disabled=true -Dhudson.udp=-1"



参考资料:https://issues.jenkins-ci.org/browse/JENKINS-10160 

转载于:https://my.oschina.net/redhat1520/blog/616827

你可能感兴趣的:(jenkins 的dns 异常导致日志撑爆服务器)