Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JMX vs VisualVM?

I read couple of links about JMX and VisualVM, but still have a couple of questions around them.

As per my understanding, JMX & VisualVM are 2 different JVM monitoring tools. In-addition, JMX has APIs, which a java application could incorporate and allow the monitoring tools to better monitor the application.

Could someone clarify if this understanding is correct or flawed ? If flawed, could you please point to any articles explaining this difference/comparison better ?

Also, when do i go for using JMX or VisualVM to monitor my java based web application hosted on a Tomcat 6.1 server ?

like image 983
yathirigan Avatar asked Jun 18 '13 10:06

yathirigan


People also ask

Does VisualVM use JMX?

The JVM software exposed via the JMX connection can now be monitored and managed via Java VisualVM.

What is difference between JConsole and VisualVM?

VisualVM takes application monitoring one level deeper than JConsole by allowing the user to analyze thread execution as well as the ability to profile CPU and memory usage of JVM requests, both of which are triggered manually by the user.

What is VisualVM used for?

Java VisualVM is a tool that provides a visual interface for viewing detailed information about Java applications while they are running on a Java Virtual Machine (JVM), and for troubleshooting and profiling these applications.

Does JDK come with VisualVM?

Java VisualVM was first bundled with the the Java platform, Standard Edition (Java SE) in JDK version 6, update 7.


1 Answers

That's not correct. JConsole & Java VisualVM are 2 different JVM monitoring tools. Java Management Extensions (JMX) is a Java technology that supplies tools for managing and monitoring applications, like JConsole or Java VisualVM

like image 71
Evgeniy Dorofeev Avatar answered Oct 21 '22 15:10

Evgeniy Dorofeev