Skip to content
Laurent Bovet edited this page May 11, 2015 · 6 revisions

A standalone jar is available on the release page.

Start your java application to monitor and enable remote monitoring:

-Dcom.sun.management.jmxremote 
-Dcom.sun.management.jmxremote.port=9010
-Dcom.sun.management.jmxremote.local.only=false 
-Dcom.sun.management.jmxremote.authenticate=false 
-Dcom.sun.management.jmxremote.ssl=false

From localhost, you can now use jminix in standalone mode adding the following vm params at startup:

-DserverConnectionProvider=org.jminix.server.RmiServerConnectionProvider
-DserverConnectionProviderArgs=ServiceUrl=service:jmx:rmi:///jndi/rmi://localhost:9010/jmxrmi

There is also a possibility to add authentification parameters:

-DserverConnectionProvider=org.jminix.server.RmiServerConnectionProvider
-DserverConnectionProviderArgs=ServiceUrl=service:jmx:rmi:///jndi/rmi://localhost:9010/jmxrmi,Username=user,Password=secret

jminix starts on port 8181. This can be adjusted adding a normal command line parameter:

java -D...VMPARAMS -jar jminix-VERSION.jar 1234 

would start the application in standalone mode on port 1234.

Clone this wiki locally