Temp files

Aleksey Shipilev aleksey.shipilev at oracle.com
Fri Aug 22 07:21:44 UTC 2014


Hi Brian,

On 08/21/2014 09:06 PM, Brian Harris wrote:
> Hi, wanted to report the inability to run jmh when user doesnt have write
> access to tmp dir. Must you create a temp file on the real fs? Maybe there
> could be a switch to change the dir used.

Yes, JMH expects a writable temp dir, since we are communicating many
things to/from the forked VM via the files. Moving out to completely
read-only execution will introduce quite a mess in the harness
infrastructure. The use case of non-writable tmp dir is minuscule in
proportion, as far as I can see. Therefore, we wouldn't reconsider in
nearest future.

As Staffan said, -Djava.io.tmpdir is your friend here :)

-Aleksey.



More information about the jmh-dev mailing list