Temp files

Brian Harris brianfromoregon at gmail.com
Thu Aug 21 17:06:45 UTC 2014


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