How set java.io.tmpdir=/tmp for Jenkins slave?

4,517 views
Skip to first unread message

Ed of the Mountain

unread,
Jan 7, 2013, 12:51:56 PM1/7/13
to jenkins...@googlegroups.com
Is there a way to set system property: java.io.tmpdir=/tmp for a slave?  I am launching the slave via SSH.  I assume if I can map java.io.tmpdir=/volume1/tmp my problem is solved.

My problem is I am running out of /tmp space with a Jenkins slave running on a Synology ARM based NAS which uses tmpfs or RAM as the /tmp resource.

Thanks in advance,

-Ed

           
           


Reynald Borer

unread,
Jan 7, 2013, 4:31:32 PM1/7/13
to jenkins...@googlegroups.com
Hi,

Try to add the following inside the JVM options: "-Djava.io.tmpdir=/foo" (click on Advanced under Launch method to see show this field).

Then disconnect and reconnect the slave to take this parameter into account.

Cheers,
Reynald

ED SUTTON

unread,
Jan 7, 2013, 5:09:26 PM1/7/13
to jenkins...@googlegroups.com
Thank you Reynald!  

That solved my problem.  

Somehow I was blind to seeing the "Advanced" button on the slave node configuration page.

Thanks again for your help! 

-Ed

Raghav

unread,
Sep 13, 2017, 8:29:39 AM9/13/17
to Jenkins Users
Hi Ed/Reynald,

I had same issue on our jenkins slave, and find this post useful.

I have one more question here.

Once we change the default /tmp to something else like /foo, should we also worry about cleaning up this /foo temp directory regularly?

What's your recommendation?

Thanks
Reply all
Reply to author
Forward
0 new messages