钉钉报警,进入服务器一看
systemd-journald 进程的CPU使用率几乎100% 负载也越来越高
查看状态
systemctl status systemd-journald
Apr 09 13:35:18 gitlab systemd-journal[1574]: Suppressed 852745 messages from /system.slice/jenkins.service
Apr 09 13:35:48 gitlab systemd-journal[1574]: Suppressed 865342 messages from /system.slice/jenkins.service
Apr 09 13:36:18 gitlab systemd-journal[1574]: Suppressed 868239 messages from /system.slice/jenkins.service
Apr 09 13:36:48 gitlab systemd-journal[1574]: Suppressed 865632 messages from /system.slice/jenkins.service
看起来是因为控制了jenkins服务产生的日志而导致CPU高
systemctl status jenkins
Apr 9 13:32:49 gitlab java: question: [DNSQuestion@414796410 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]
jenkins产生了大量的日志
重启jenkins负载下降
随后开始百度
点击 系统管理->System Log->日志级别,增加配置项 javax.jmdns,值为off。
这种通过系统配置的办法在jenkins重启后会失效。
实际上为什么会出现dns请求异常,没找到相关资料
想尝试修改本地dns,复现这种情况,发现可能会影响到其他服务,算了,下次出现再深入吧,哈哈-。-