突然收到服务器报警,磁盘空间不足,经过查看Jenkins日志占据啦十几个G。显然是不正常的,赶紧清理日志。结果不到一分钟又产生啦几个G的日志,细看内容发现:
[DNSQuestion@436065973 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@446684069 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1029751846 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1840104297 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@445835287 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@2125744659 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1162797079 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1182520668 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1269059540 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@387735649 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@627074253 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1034523656 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@1419425414 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@552717084 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
[DNSQuestion@101811651 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
瞬间想到的办法便是禁用日志,但直接禁用所有日志显得有些过于鲁莽。变寻找度娘求助,方发现,原来Jenkins中本来已经有日志管理的功能,即按如下步骤操作即可处理:
【系统管理】=》【system log】=>【日志级别】=》【Name: javax.jmdns,Level: off】