Skip to content

JMX vs JMXMP #637

Answered by andrewazores
grzesuav asked this question in Q&A
Sep 4, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

For this reason, we always recommend to use single-port RMI with a known port number:

https://cryostat.io/get-started/#using-jmx

When Cryostat automatically discovers your applications by ex. Kubernetes Endpoints querying, it always uses JMX RMI on a single port.

You can be extra-specific and set both port number properties on your application deployment:

-Dcom.sun.management.jmxremote.port=1234
-Dcom.sun.management.jmxremote.rmi.port=1234

to the same known number, but this should have the same effect as setting the one property alone.

https://www.baeldung.com/jmx-ports

Note that the "local attach port" can be left alone and on a random port number, because that isn't involved with remot…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@grzesuav
Comment options

Answer selected by grzesuav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants