This bundle adds support for jmx over jmxmp which is the only way to make jmx work on marathon This bundle compiles only on Java 11.
This makes it possible to use JMX over JMXMP.
Clone the source:
git clone github.com/phaneesh/dropwizard-jmxmp
Build
mvn install
<dependency>
<groupId>io.dropwizard.jmxmp</groupId>
<artifactId>dropwizard-jmxmp</artifactId>
<version>2.0.20-1</version>
</dependency>
@Override
public void initialize(final Bootstrap...) {
bootstrap.addBundle(new JmxMpBundle() {
protected int port() {
return 9010;
}
});
}
-Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
jconsole -J-Djava.class.path=$JAVA_HOME/lib/tools.jar:/path/to/jmxremote_optional-repackaged-5.0.jar
jvisualvm --cp:a /path/to/jmxremote_optional-repackaged-5.0.jar
jmc.ini
-Xbootclasspath/a:/path/to/jmxremote_optional-repackaged-5.0.jar
service:jmx:jmxmp://<host>:<port>
Can you improve this documentation? These fine people already did:
phaneesh & PhaneeshEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close