{"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":"
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 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 When you start Java VisualVM, the main Java VisualVM window opens. The main Java VisualVM window is divided into two windows.<\/p>\n <\/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. 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 Detailed information about applications is displayed in the main window. When you view data about an application, each application is represented by a tab in the main window that enables you to easily view and navigate the data. Saved thread dumps and heap dumps are also opened in the main window.<\/p>\n For information about the application data that can be displayed in the main window, see the following pages:<\/p>\n In order to troubleshoot memory related issue with Java or Tomcat, it is sometime necessary to create Heap Dumps. These files will then provide deeper analysis of processes and threads that are consuming memory for specific classes that are being executed in the application code. Below are the instructions on how to create or collect a heap dump.<\/p>\n <\/a><\/p>\n <\/a><\/p>\n <\/a><\/p>\n You can add functionality to Java VisualVM by using the Plugins manager to install plugins from the Java VisualVM Plugins Center. You can also extend the functionality of Java VisualVM by developing your own plugins that can then be added to an update center.<\/p>\n For example, installing the Java VisualVM-MBeans plugin adds an MBeans tab<\/a> to the application tab that enables you to monitor and manage MBeans<\/a> from within Java VisualVM.<\/p>\n To install a Java VisualVM plugin:<\/b><\/p>\n <\/p>\n For more information about creating Java VisualVM plugins, please read Getting Started Extending Java VisualVM<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":" Introduction to Java VisualVM Java VisualVM is a tool that provides a visual interface for viewing detailed information about Java […]<\/p>\n","protected":false},"author":54,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12354],"tags":[361,215,274],"yoast_head":"\nJava VisualVM Userdir<\/h3>\n
Java VisualVM Windows<\/h2>\n
\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>\nApplications Window<\/h3>\n
\n
Main Window<\/h3>\n
\n
Java VisualVM Heap Dump Creation<\/h2>\n
\n
Java VisualVM Plugins<\/h2>\n
\n