Temp files
Staffan Friberg
staffan.friberg at oracle.com
Thu Aug 21 17:27:19 UTC 2014
You should be able to control the temp directory the JDK uses with
-Djava.io.tmpdir.
Cheers,
Staffan
On 08/21/2014 10:06 AM, 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.
>
> java.lang.IllegalStateException: Error creating compiler hints file
> at org.openjdk.jmh.runner.CompilerHints.hintsFile(CompilerHints.java:74)
> at org.openjdk.jmh.runner.CompilerHints.addCompilerHints(CompilerHints.java:199)
> at org.openjdk.jmh.runner.Runner.getSeparateExecutionCommand(Runner.java:698)
> at org.openjdk.jmh.runner.Runner.runSeparate(Runner.java:513)
> at org.openjdk.jmh.runner.Runner.runBenchmarks(Runner.java:449)
> at org.openjdk.jmh.runner.Runner.run(Runner.java:232)
> at HelloJmhTest.run(HelloJmhTest.java:26)
> Caused by: java.io.IOException: Permission denied
> at java.io.UnixFileSystem.createFileExclusively(Native Method)
> at java.io.File.createTempFile(File.java:1879)
> at java.io.File.createTempFile(File.java:1923)
> at org.openjdk.jmh.util.FileUtils.tempFile(FileUtils.java:53)
> at org.openjdk.jmh.util.FileUtils.createTempFileWithLines(FileUtils.java:111)
> at org.openjdk.jmh.runner.CompilerHints.hintsFile(CompilerHints.java:72)
More information about the jmh-dev
mailing list