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 17
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>3.0.7-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/brooklyn-jmxmp-agent-version.jar
jvisualvm --cp:a /path/to/brooklyn-jmxmp-agent-version.jar
jmc.ini
-Xbootclasspath/a:/path/to/brooklyn-jmxmp-agent-version.jar
service:jmx:jmxmp://<host>:<port>
Can you improve this documentation? These fine people already did:
phaneesh, Phaneesh Nagaraja, Phaneesh N & PhaneeshEdit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |