How to stop Jenkins log from becoming huge?

后端 未结 6 369
花落未央
花落未央 2020-12-07 17:47

Recently my jenkins.log has started getting very large, very quickly, full of exceptions about DNS resolution. I attempted to use logrotate, but the log file grows too quick

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-07 18:19

    For the ones using Centos/Redhat, the option to disable the DNS Multicast feature can found in /etc/sysconfig/jenkins

    JENKINS_JAVA_OPTIONS="-Dhudson.DNSMultiCast.disabled=true -Dhudson.udp=-1 -Djava.awt.headless=true"
    

提交回复
热议问题