I cannot connect to ActiveMQ from JConsole

 FAQ > Errors > I cannot connect to ActiveMQ from JConsole

Make sure that the machine you are talking to has a valid java.rmi.server.hostname-property value

e.g. on unix (OS X, Linux, Solaris)

export ACTIVEMQ\_OPTS=$ACTIVEMQ\_OPTS -Djava.rmi.server.hostname=<hostname> 
activemq

or on Windows

SET ACTIVEMQ\_OPTS=%ACTIVEMQ\_OPTS% -Djava.rmi.server.hostname=<hostname> 
activemq

Apache ActiveMQ, ActiveMQ, ActiveMQ Artemis, Apache, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. Copyright © 2019, The Apache Software Foundation. Licensed under Apache License 2.0.