分类: Web

Jenkins报" There was an OPT answer. Not currently handled. Option code: 65002 data: 143856793D7BF6F6"解决方法

Jenkins日志大量报错信息如下:

三月 09, 2017 2:23:43 下午 hudson.WebAppMain$3 run
信息: Jenkins is fully up and running
三月 09, 2017 2:28:28 下午 javax.jmdns.impl.DNSIncoming readAnswer
警告: There was an OPT answer. Not currently handled. Option code: 65002 data: 143856793D7BF6F6
三月 09, 2017 2:28:28 下午 javax.jmdns.impl.DNSIncoming readAnswer
警告: There was an OPT answer. Not currently handled. Option code: 65002 data: 143856793D7BF6F6
三月 09, 2017 2:28:29 下午 javax.jmdns.impl.DNSIncoming readAnswer
警告: There was an OPT answer. Not currently handled. Option code: 65002 data: 143856793D7BF6F6
三月 09, 2017 2:28:29 下午 javax.jmdns.impl.DNSIncoming readAnswer
警告: There was an OPT answer. Not currently handled. Option code: 65002 data: 143856793D7BF6F6
三月 09, 2017 2:28:29 下午 javax.jmdns.impl.DNSIncoming readAnswer
警告: There was an OPT answer. Not currently handled. Option code: 65002 data: 143856793D7BF6F6
三月 09, 2017 2:28:29 下午 javax.jmdns.impl.DNSIncoming readAnswer
警告: There was an OPT answer. Not currently handled. Option code: 65002 data: 143856793D7BF6F6
三月 09, 2017 2:28:30 下午 javax.jmdns.impl.DNSIncoming readAnswer

其实为jenkins低版本的一个bug,Hudson 1.x旧版本使用jmDNS(http://jmdns.sourceforge.net/)多播(multicast),但是从Hudson 2.0.0版本后已经不使用了。如果硬盘小的很,很快会撑满 ,解决方法如下:
如果是在tomcat下面部署的直接在/tomcat//bin/catalina.sh 文件里面的JAVA_OPTS的参数里面追加:

-Dhudson.DNSMultiCast.disabled=true -Dhudson.udp=-1

如下图
catalina.png

保存重启即可,如还继续报错检查下hudson.DNSMultiCast.disabled参数是否为true:

“jenkinsMETA-INFmavenorg.jenkins-ci.mainjenkins-war〗目录下的〖pom.xml〗文件,将〖hudson.DNSMultiCast.disabled〗值设为〖true〗”
Jenkins 1.651.1 版本默认已经是true了。

如果不是tomcat部署的,可以直接用java带参数启动:

/usr/bin/java -Dfile.encoding=UTF-8 -Dhudson.DNSMultiCast.disabled=true -Dhudson.udp=-1 -jar 
/xxxxxx/jenkins.war -XX:PermSize=256m -XX:MaxPermSize=512m -Xms256m -Xmx512m -Djava.io.tmpdir=/tmp --httpPort=80 

相关文章

发表新评论