Dev - consultant - artisan

Qualité, amélioration continue, agilité, professionnalisme.

Un besoin ? Un projet ? Écrivez moi !

Jenkins log is huge, dns log errors …

Spread the love

If like me you have the bad surprise to have a full partition on your disk, with the consequences we can imagine, you perhaps found that Jenkins have a log file outrageously big…

Full of:

[DNSQuestion@809381925 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: ]

After a quick research it is really Jenkins fault because of an annoying bug :

Jenkins dns error log bug

As you can see it’s an old bug:

Created:
Updated:

And since it’s minor no one seams to work on it…

Workaround here, thanks as always to the stackoverflow community 😉

https://stackoverflow.com/questions/31719756/how-to-stop-jenkins-log-from-becoming-huge

You can disable the logging of these DNS errors by adjusting the logging settings within Jenkins.

From the Jenkins web interface go to:

 Manage Jenkins -> System Log -> Log Levels (on the left)
Add the following entry:

Name: javax.jmdns

Level: off
This way you can keep the Multicast DNS feature but without all the logging data.

And to claim your space on your disk 😉

Before:

udev               3,9G       0  3,9G   0% /dev
tmpfs              803M     79M  724M  10% /run
/dev/xvda2          54G     54G     0 100% /
tmpfs              4,0G       0  4,0G   0% /dev/shm
tmpfs              5,0M       0  5,0M   0% /run/lock
tmpfs              4,0G       0  4,0G   0% /sys/fs/cgroup
service jenkins stop
rm /var/log/jenkins/jenkins.log
df -h #to check your space left

After:

udev               3,9G       0  3,9G   0% /dev
tmpfs              803M     79M  724M  10% /run
/dev/xvda2          54G     13G   39G  25% /
tmpfs              4,0G       0  4,0G   0% /dev/shm
tmpfs              5,0M       0  5,0M   0% /run/lock
tmpfs              4,0G       0  4,0G   0% /sys/fs/cgroup

Feels good !

 

Leave a reply

Your email address will not be published.

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.