{"id":5867,"date":"2015-06-15T14:19:05","date_gmt":"2015-06-15T21:19:05","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/?p=5867"},"modified":"2021-11-29T15:06:13","modified_gmt":"2021-11-29T22:06:13","slug":"how-to-use-jvisualvm","status":"publish","type":"post","link":"https:\/\/ephesoft.com\/docs\/how-to-use-jvisualvm\/","title":{"rendered":"How To Use Jvisualvm"},"content":{"rendered":"

Introduction to Java VisualVM<\/h2>\n

Java VisualVM is a tool that provides a visual interface for viewing detailed information about Java technology-based applications (Java applications) while they are running on a Java Virtual Machine (JVM). Java VisualVM organizes JVM data that is retrieved by the Java Development Kit (JDK) tools and presents the information in a way that enables you to quickly view data on multiple Java applications. You can view data on local applications and applications that are running on remote hosts. You can also capture data about the JVM software and save the data to your local system, and view the data later or share the data with others.<\/p>\n

In order to benefit from all Java VisualVM’s features, you should run the Java Platform, Standard Edition (Java SE) version 6.<\/p>\n

Java VisualVM is bundled with JDK version 6 update 7 or greater. Once you have installed an appropriate JDK version, navigate to your JDK software’s bin<\/span> directory and double-click the Java VisualVM executable. On Windows this directory will be the following:<\/p>\n

C:\\Program Files\\Java\\jdk1.6.0_update-number<\/em>\\bin<\/tt><\/p>\n

In the case of Ephesoft Transact you can find the jvisualvm application in the following location:<\/p>\n

<Ephesoft_Installation_Directory>\\Dependencies\\jdk\\bin\\jvisualvm.exe<\/tt><\/p>\n

Alternatively, navigate to your JDK software’s bin<\/span> directory and type the following command at the command (shell) prompt:<\/p>\n

jvisualvm<\/tt><\/p>\n

The first time that you launch Java VisualVM you are prompted to accept a license agreement.<\/p>\n

Java VisualVM Userdir<\/h3>\n

On Windows, the default location for the Java VisualVM userdir<\/tt> is the following:<\/p>\n

C:\\Documents and Settings\\<USER><\/i>\\Application Data\\.visualvm\\JDK_update-number<\/em><\/tt><\/p>\n

To find the location of your Java VisualVM userdir<\/tt>, choose Help > About from the main menu and click Details in the About Java VisualVM window.<\/p>\n

Java VisualVM Windows<\/h2>\n

When you start Java VisualVM, the main Java VisualVM window opens. The main Java VisualVM window is divided into two windows.<\/p>\n

\"screenshot<\/p>\n

When you first start Java VisualVM, the Applications window is visible in the left side of the window and the Start Page is visible in the right side in the main window. The Start Page contains links to Java VisualVM documentation web pages and additional resources.
\nNote:<\/b> The Start Page opens by default each time you start Java VisualVM. You can open the Start Page at any time by choosing Help > Start Page from the main menu. You can also hide the Start page by unchecking the “Show On Startup” check-box.<\/p>\n

Applications Window<\/h3>\n

The Applications window opens in the left side of the main Java VisualVM window when you launch the application. The Applications window is the main point of entry for exploring the details of running applications. The Applications window uses a tree structure to enable you to quickly view the applications running on the local machine and any connected remote machines. You can also access core dumps (Solaris\/Linux) and saved snapshots from the Applications window.<\/p>\n

Right-clicking a node in the Applications window opens a popup menu that enables you to perform actions related to that node, including opening application tabs, taking heap and thread dumps and opening snapshots in the main window.<\/p>\n

For more details about how to use the Applications window to view and save data, see the following pages:<\/p>\n