Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

SPM Client is available in two versions:

  • Embedded
  • 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 process and can thus be used for monitoring both Java and non-Java-based applications.

Embedded

Foo

Standalone

 

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

 

  • No labels