这个问题在这里已经有了答案:
How to stop Jenkins log from becoming huge?
(6 个回答)
6年前关闭。
几乎每周我们运行 jenkins 的开发服务器都没有剩余的磁盘空间,因为 jenkins 日志文件变得很大(> 100g)。
这些奇怪的消息完全填满了它:
[DNSQuestion@1218458593 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1577918927 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1610023624 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1936465154 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@983177141 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@229530224 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1789454415 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@2034199573 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@326302520 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1827692284 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1094138301 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1139456586 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1204101684 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@699171726 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1362017751 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1191212370 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@691682052 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
我们正在运行当前的 Jenkins 版本 1.622。
最佳答案
这是 Jenkins 依赖项的已知问题,跟踪为 JENKINS-10160 (尽管在撰写本文时问题跟踪器已关闭)。
如果您没有使用 Jenkins 的 DNS 服务发现功能(您可能没有使用),那么您可以使用以下 command line flags 禁用此功能启动 Jenkins 时:
-Dhudson.DNSMultiCast.disabled=true -Dhudson.udp=-1
关于jenkins - 我怎样才能防止 jenkins 日志收到奇怪消息的垃圾邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31740373/