JMX system properties in karaf-wrapper.conf

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

JMX system properties in karaf-wrapper.conf

Richard Hierlmeier

When i generate with the wrapper:install command karaf-wrapper.conf it contains the following lines:

...
wrapper.java.additional.5=-Dcom.sun.management.jmxremote
...
# Uncomment to enable jmx
#wrapper.java.additional.n=-Dcom.sun.management.jmxremote.port=1616
#wrapper.java.additional.n=-Dcom.sun.management.jmxremote.authenticate=false
#wrapper.java.additional.n=-Dcom.sun.management.jmxremote.ssl=false

JMX communication is working even if the last three system properties are not set.

Under what circumstances does it make sense to uncomment these lines?

Richard

Reply | Threaded
Open this post in threaded view
|

Re: JMX system properties in karaf-wrapper.conf

jbonofre
Hi,

Karaf doesn't use the standard property to configure the MBean server:
it's a core Karaf service.

You can tune the JMX in etc.org.apache.karaf.management.cfg. For
authentication, it uses the Karaf JAAS realm.

Regards
JB

On 28/09/2018 09:03, Richard Hierlmeier wrote:

>
> When i generate with the wrapper:install command karaf-wrapper.conf it
> contains the following lines:
>
> ...
> wrapper.java.additional.5=-Dcom.sun.management.jmxremote
> ...
> # Uncomment to enable jmx
> #wrapper.java.additional.n=-Dcom.sun.management.jmxremote.port=1616
> #wrapper.java.additional.n=-Dcom.sun.management.jmxremote.authenticate=false
> #wrapper.java.additional.n=-Dcom.sun.management.jmxremote.ssl=false
>
> JMX communication is working even if the last three system properties
> are not set.
>
> Under what circumstances does it make sense to uncomment these lines?
>
> Richard
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com