Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing jvisualvm on CentOS

I installed Java on my CentOS machine, but I don't have jvisualvm:

[root@ bin]# ls -la /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/
total 496
drwxr-xr-x. 2 root root  4096 2012-05-22 17:31 .
drwxr-xr-x. 4 root root  4096 2012-02-15 03:11 ..
-rwxr-xr-x. 1 root root 41120 2012-02-15 03:13 java
-rwxr-xr-x. 1 root root 41088 2012-02-15 03:13 keytool
-rwxr-xr-x. 1 root root 41168 2012-02-15 03:13 orbd
-rwxr-xr-x. 1 root root 41128 2012-02-15 03:13 pack200
-rwxr-xr-x. 1 root root 42368 2012-02-15 03:13 policytool
-rwxr-xr-x. 1 root root 41080 2012-02-15 03:13 rmid
-rwxr-xr-x. 1 root root 41088 2012-02-15 03:13 rmiregistry
-rwxr-xr-x. 1 root root 41088 2012-02-15 03:13 servertool
-rwxr-xr-x. 1 root root 41176 2012-02-15 03:13 tnameserv
-rwxr-xr-x. 1 root root 91352 2012-02-15 03:13 unpack200

How do I install it?

like image 318
Erel Segal-Halevi Avatar asked Aug 19 '12 13:08

Erel Segal-Halevi


People also ask

How do I install jvisualvm?

To install a Java VisualVM plugin:Choose Tools > Plugins from the main menu. In the Available Plugins tab, select the Install checkbox for the plugin. Click Install. Step through and complete the plugin installer.

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.

Where is VisualVM Linux?

The executable path will be [path into folder where you extracted contents of your VisualVM download]\bin\visualvm.exe or .../bin/visualvm , depending on your OS (as Sha commented).


1 Answers

From Oracle's web site:

Various optional tools, including Java VisualVM, are provided with Sun's distribution of the Java Development Kit (JDK)

Did you install the Java JDK (Java Development Kit) or just the runtime (JRE)?

The Java 6 JDK is available for download at http://www.oracle.com/technetwork/java/javase/downloads/jdk6-downloads-1637591.html

The Java 7 JDK is available at: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1637583.html

Or are you limited to only using OpenJDK? In which case you can download VisualVM from http://visualvm.java.net/download.html

like image 97
HeatfanJohn Avatar answered Oct 09 '22 11:10

HeatfanJohn