Jenkins CI complained “Disk space is too low”

Disk space is too low. Only 0.519GB left on /tmp.

The message displayed looked like the one above. I look around for solutions … — the default temp space threshold is 1GB, so alright remaining 0.5 GB is truely too low — actually I think 0.5 GB isn’t really little temp space, so maybe reducing the setting to 0.3 GB would do … — but what if Jenkins is really that hungry … ?!? — then I thought myself of assigning some different temp space, but there is no dedicated Jenkins setting for that, but then I found the article quoted above — and I created a tmp-java-jenkins subdirectory and made use of it like this (along the lines described in the article above):

JAVA_OPTS=”-Djava.io.tmpdir=$HOME/tmp-java-jenkins”
java … $JAVA_OPTS … -jar …

Of course now I am rid of Jenkins’ “low temp disk space” problem. The Jenkins server runs on a NAS with rather sufficient disk space …

How to check?

  • …/jenkins/systemInfo -> Jenkins > Manage Jenkins > System Properties

Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.