Databases Reference
In-Depth Information
In the startup configuration file of the Liferay Portal Tomcat server, we enabled
JMX-based monitoring and configured the JMX port. We will talk about how to read
and analyze monitoring output in the following sections.
VisualVM
VisualVM is an open source resource monitoring tool for Java. It is actually
considered as the next generation of monitoring tools as compared to the
lightweight JConsole. VisualVM is included as part of the Oracle JDK installation.
It is implemented using the plugin-based architecture, hence, it allows additional
plugins for resource monitoring. JConsole can also be used as one of the plugins of
VisualVM. VisualVM also includes profiling capabilities. VisualVM allows taking
snapshots of monitoring data at any time. This enables us to compare application
states at certain events. Similar to JConsole, VisualVM also allows us to connect to
local as well as remote Java applications. To connect VisualVM with a remote Liferay
Portal Tomcat server, we will need to enable the JMX port. We learned how to enable
the JMX port in the previous section. Let's learn how to connect VisualVM with the
Liferay Portal Tomcat server.
1.
From the command prompt run the following command to start VisualVM:
<JDK_HOME>/bin/jvisualvm
2.
The system will open the VisualVM application. Now click on File | Add
JMX Connection… . The system will open a dialog box as shown in the
following screenshot:
 
Search WWH ::




Custom Search