krasa / VisualVMLauncher

IntelliJ plugin - https://plugins.jetbrains.com/plugin/7115
Apache License 2.0
108 stars 19 forks source link

Possibility to pass arguments for jvisualvm #25

Closed TAndronicus closed 5 years ago

TAndronicus commented 5 years ago

It would be great to be able to pass arguments for jvisualvm for example in case when graal visualvm is used backed by openjdk. jdkhome must be set, otherwise visualvm won't start.

Error occurs on linux manjaro, when graal jdk is installed via sdkman.

krasa commented 5 years ago

There are cases when jdkhome is currently not passed at all - that could be perhaps fixed by resolving it from the project.

Is your case when you want to pass a different jdkhome than is configured in your project?

TAndronicus commented 5 years ago

That's right. I want to use openjdk to run the project, but visualvm itself need jdk from oracle.

krasa commented 5 years ago

Try to update.

image

krasa commented 5 years ago

And try the Browse button, it has some validations, maybe it won't work for openjdk.

TAndronicus commented 5 years ago

I don't know if it's me, but most of the times it works like charm, but sometimes it freezes (with same options) and I need to restart intellij / kill the process.

krasa commented 5 years ago

When it freezes and what freezes?

TAndronicus commented 5 years ago

VisualVM freezes on splashscreen

krasa commented 5 years ago

Then it is VisualVM bug.

TAndronicus commented 5 years ago

Alright then, other than that works fine. Thank you very much.

krasa commented 5 years ago

No problem.