DEV Community

aquila
aquila

Posted on • Updated on

JVM tmpdir option

By default, JVM creates tmp dir under /tmp/
This setting can be changed by adding JVM option
"-Djava.io.tmpdir=mytmpdir"

1 tricky thing is mytmpdir should be exist before starting Java process.

So steps should be
1/ add JVM option -Djava.io.tmpdir
2/ mkdir mytmpdir
3/ restart java process

Top comments (0)