-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin doesn't work on Windows with IntelliJ 2016.1.1? #19
Comments
Hi. Can you run your benchmarks without plugin? |
Yes, completely. |
I also see this error. I am running the same version under Windows. I can run benchmarks via gradle successfully (via jmh-gradle-plugin) - is it possible that they conflict? |
There is nothing really I can do about it, it's not a plugin issue. The exception is thrown by the JMH runner itself which tries to acquire a lock |
Hi all, Best Regards, |
@artyushov We cannot do this trivially through the plugin since there is nowhere to state arguments. |
@Jire You can add the TMP environment variable in the plugin configuration and point it to any writeable directory. |
One more solution: run idea64.exe as Administrator |
Here is the only solution that works for me ->http://stackoverflow.com/questions/37720692/exception-while-trying-to-acquire-a-jmh-lock |
@kiril-dayradzhiev |
|
Or, alternatively, check the checkbox to include system defined environment variables in the environment variables dialog (opened via the "page icon" on the right side of the text box). Not sure if this could have a negative impact on the benchmarks though … |
And let a broken plugin make a mess in |
…indows\/jmh.lock): Access is denied
When JMH starts it checks that there no any other JMH process running on the machine. The standard Java API has a In Linux/UNIX the
So what really happens is that when we are starting JMH benchmark from IntelliJ the environment variables are really empty and the
But if in run configuration check So the workaround was committed in 7b98e73 to create by default JMH configuration with already checked
I.e. the property is affected by JMH also have a VM option I don't know exactly how to fix it properly. But I think the best solution would be:
We also have three workarounds:
I would like to hear your thought or opinions and if no any objections I'll create a corresponding issue tickets in IntelliJ and create a PR to JMH. JFYI: The similar issues exists for JMH gradle plugin: |
Limit the impact of inherited environment variables to Windows systems. This was/is a workaround for artyushov#19: non-Windows systems already properly provide the path to the tmp directory.
When running it seems like it tries to access an invalid path for its lock.
The text was updated successfully, but these errors were encountered: