Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VisualVM running JRE

I can't get VisualVM working with eclipse, i was following these instructions http://visualvm.java.net/download.html and also these http://visualvm.java.net/gettingstarted.html

The problem is that it cant see JDK location which is "C:\Program Files\Java\jdk1.8.0_05", this happens when i try to run the application

enter image description here

Here is the original content of visualvm.conf file

http://pastebin.com/K9TnQb0G

Unfortunately my command line is somehow broken too(or I'm the one who dont know how to do it)

enter image description here

First I tryed to install JProbe but it wasnt working, then I tryed VisualVM and it also isn't working. How can i resolve this please? I wasted 5 hours and its driving me crazy.

like image 722
Peter Avatar asked Jun 04 '14 17:06

Peter


People also ask

Does VisualVM work with Java 11?

Use VisualVM bundled with GraalVMGraalVM contains a fully compliant Java SE 8, Java SE 11, and Java SE 17 JDK distribution based on Oracle JDK and OpenJDK. It features an innovative JIT compiler which may noticeably improve performance of Java applications, compared to the standard Oracle JDK or OpenJDK.

What is Java VisualVM used for?

Java VisualVM is a tool that provides a visual interface for viewing detailed information about Java applications while they are running on a Java Virtual Machine (JVM), and for troubleshooting and profiling these applications.

How do I start VisualVM in Java?

To run it, just click on the jvisualvm.exe icon. All you need to do is click on the jvisualvm.exe and the application starts up. All Java applications running will be displayed on the right hand side navigation bar. Note that there is no need to register your application with VisualVM - it'll appear automatically.

Does JDK come with VisualVM?

Java VisualVM was first bundled with the the Java platform, Standard Edition (Java SE) in JDK version 6, update 7.


3 Answers

Uncomment line 72 of your visualvm.conf file, and set the value:

#visualvm_jdkhome="/path/to/jdk"
like image 172
dcsohl Avatar answered Sep 26 '22 03:09

dcsohl


For MAC users, add below line to visualvm.conf file which can be located at /Applications/VisualVM.app/Contents/Resources/visualvm/etc

visualvm_jdkhome="/Library/Java/JavaVirtualMachines/<jdk version>/Contents/Home"
like image 42
Ankit Pandoh Avatar answered Sep 25 '22 03:09

Ankit Pandoh


Add the JDK bin directory to the PATH environmental variable

PATH=C:\Program Files\Java\jdk1.8.0_05\bin;%PATH%
like image 24
Reimeus Avatar answered Sep 26 '22 03:09

Reimeus