Can VisualVM monitoring apps running on JRE

2019-05-11 10:15发布

问题:

as the headline mentioned: is it possible to connect VisualVM to an remote application running on JRE instead of JDK ? And yes, the VisualVM itself runs on JDK !

Kind regards Dominik

回答1:

VisualVM connects to a running Java Virtual Machine (JVM). And this JVM is contained both in the JDK and the JRE. In fact, the JDK is a JRE with additional tools and items to allow creating Java programs. If you only want to run them, you only need a JDK.

So yes, you can connect to a JRE-only install.