I downloaded visualvm 2.0.6 (currently latest) on windows.
I tried making the following attempts:
Integrating VisualVM with Intellij IDEA.
- I installed VisualVM Launcher plugin.
- Set the VisualVM executable path
bin/visualvm.exe
- VisualVM window opens up.
- My program completed execution.
- VisualVm shows this error:
can not open requested application
- Tried all solutions from this stackoverflow post.
- VisualVM window opens up.
- I can see my application inside the Application node.
- Visualvm freezes completely and I cannot click/open my application to profile it. I had to end the task from the task manager.
Commandline way
After seeing no results from above, I tried to run my application normally using the command line.
- Opened
visualvm.exe
.
- Opened cmd, and executed the regular java command:
java -classpath "path/to/all/jars/dependencies/" main.Main
- Program completed execution, but visualvm didn't show anything.
Other solutions from StackOverflow posts:
All the following didn't work:
Is there any step/process I am missing?
If any more information is required, let me know.
Shall I try any other open-source alternative for VisualVM
?
question from:
https://stackoverflow.com/questions/65952868/unable-to-run-visualvm-with-intellij-or-commandline 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…