Monitoring your applications
So far, we have learnt how to gather basic statistics from the CLI about some key attributes. The values extracted from the CLI can be easily extended into a scripting system, which includes some more advanced functionalities such as alerts or triggers. In an Enterprise context, however, it is often required to gather information that is not directly exposed by the CLI or to create graphical views or even business intelligence from this data. We will show which tools are commonly used for this purpose.
Using JConsole to display graphical attributes
A common and widely used tool for visualizing insights about your server's key attributes is JConsole, which ships as part of the JDK. A detailed description of this tool is available on the Oracle site at: http://docs.oracle.com/javase/8/docs/technotes/guides/management/jconsole.html.
You can start JConsole using a patched script included in your JBOSS_HOME/bin
, named jconsole.sh
. This script includes in the classpath...