Cloud Stack Ninja

Every week I got surprised by my Jenkins server hitting 100% disk used by Jenkins log.

So I remove the file, and then my disk gets lots of free space again.

[ec2-user@ip-xxx-xxx-xxx-xxx ~]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        987M   60K  987M   1% /dev
tmpfs           997M     0  997M   0% /dev/shm
/dev/xvda1       32G   32G     0 100% /         <============================= DISK FULL

[ec2-user@ip-xxx-xxx-xxx-xxx ~]$ sudo rm /var/log/jenkins/jenkins.log <======= REMOVE LOG FILE

[ec2-user@ip-xxx-xxx-xxx-xxx ~]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        987M   60K  987M   1% /dev
tmpfs           997M     0  997M   0% /dev/shm
/dev/xvda1       32G   11G   21G  35% /         <============================= FREE SPACE AGAIN

My Log Level configs are:

Name                | Level
----------------------------------
winstone            | 5
org.apache.sshd     | WARNING
                    | INFO

How can I definitively prevent this problem?



Read more here: https://stackoverflow.com/questions/64369507/jenkins-log-getting-huge-and-filling-up-entire-disk-space

Content Attribution

This content was originally published by anderlaini at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: