Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

SPM Client is available in two versions:

  • Embedded (aka Javaagent-based, aka in-process)
  • Standalone

The Embedded version can be used only for monitoring Java-based applications since it runs as a Java Agent inside the Java process.

The Standalone version runs in a standalone separate process and can thus be used for monitoring both Java and non-Java-based applications.

Embedded

Foo

Standalone

 

Code Block
java -Dcom.sun.management.jmxremote.port=<port number>          <- Creates a remote JMX connector to listen through the specified port.
     -Dcom.sun.management.jmxremote.authenticate="true/false"   <- Use (or not) a passwords to access MBeans.
     -Dcom.sun.management.jmxremote="true/false"                <- Enables (or not) the JMX agent.
     -Dcom.sun.management.jmxremote.ssl="true/false"            <- Use (or not) use security access for monitoring.
     -Dcom.sun.management.jmxremote.local.only="true/false"     <- Allows (or not) establish any connection requests from local interfaces only.
<application class>                                        <- Your application class that contains main method.

 

Notes:

  • JMX server doesn't have any default port. You can choose anyone free port. The first available port is set when 0 value is specified as port.
  • After you have enabled the JMX agent for remote or local use, you can monitor your application using SPM.

See https://github.com/monitisexchange/Monitis-Java-Plugins/tree/master/JMX-Monitor