Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visualvm not part of OpenJDK7?

Neither in Ubuntu nor in Debian the tool visualvm is part of the OpenJDK 7 package. It's part of the Oracle JDK 7 and seems to be GPL licensed. While in Ubuntu it can be installed with a separate package, such a package doesn't exist in Debian.

Why isn't it part of the OpenJDK packages?

like image 737
free_easy Avatar asked May 26 '12 19:05

free_easy


People also ask

Is VisualVM included in JDK?

Various optional tools, including Java VisualVM, are provided with the Java Development Kit (JDK) for retrieving different types of data about running JVM software instances.

Does OpenJDK have VisualVM?

VisualVM is an open source tool to monitor JVM instances of each running JVM application. Its built-in features can be further enhanced by installing plugins. The users of Oracle JDK or OpenJDK 9 can download this open source tool from https://visualvm.github.io/index.html.

Where can I find VisualVM in JDK?

To find the location of your Java VisualVM userdir, choose Help > About from the main menu and click Details in the About Java VisualVM window.

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.


1 Answers

Our Ubuntu machine did not include VisualVM as part of the Java JDK. A quick search showed that the package was available as a separate install:

$ apt-cache search visualvm
...
visualvm - All-in-One Java Troubleshooting Tool

Quick Install:

$ apt-get install visualvm 

After successful installation:

$ which jvisualvm 
/usr/bin/jvisualvm

I tried running it, but it kept complaining that it was using the JRE. I edited /etc/visualvm/visualvm.conf

# default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch
jdkhome="/usr/lib/jvm/java-6-openjdk-amd64"
like image 67
Mike R Avatar answered Oct 01 '22 15:10

Mike R