How to stop Jenkins log from becoming huge?

后端 未结 6 362
花落未央
花落未央 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:12

    Modify JAVA_ARGS in /etc/default/jenkins (location for Debian / Ubuntu installations at least) to disable DNS multicast feature.

    Change this: JAVA_ARGS="-Djava.awt.headless=true"

    To this: JAVA_ARGS="-Djava.awt.headless=true -Dhudson.DNSMultiCast.disabled=true"

    And restart the service service jenkins restart

提交回复
热议问题