activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clebert Suconic <clebert.suco...@gmail.com>
Subject Re: Artemis JConsole Support
Date Fri, 05 May 2017 21:48:29 GMT
I had seen a similar question here on tomcat:

http://stackoverflow.com/questions/503057/unable-to-use-jconsole-with-tomcat-running-as-windows-service


if you add this to your artemis-service.xml:

  <argument>-Dcom.sun.management.jmxremote</argument>
  <argument>-Dcom.sun.management.jmxremote.port=8086</argument>
  <argument>-Dcom.sun.management.jmxremote.ssl=false</argument>
  <argument>-Dcom.sun.management.jmxremote.authenticate=false</argument>



Then you will be able to call jconsole and use the remote port.


I will add this commented out to artemis-service.xml as I don't want
to have an open default that people can exploit. Users can still
configure it themselves.

On Thu, Apr 27, 2017 at 1:53 PM, Clebert Suconic
<clebert.suconic@gmail.com> wrote:
> what I asked you is to compare those settings against the .bat
> file.Peharps there's some difference that's not letting you use
> jconsole.
>
> On Wed, Apr 26, 2017 at 5:26 PM, mtod <mtod@thetods.net> wrote:
>> Sorry for the delay here is the artemis-service.xml
>>
>>
>> <service>
>>    <id>artemis-broker-0.0.0.0</id>
>>    <name>ActiveMQ Artemis: broker @ 0.0.0.0</name>
>>    <description>Apache ActiveMQ Artemis is a reliable messaging
>> broker</description>
>>
>>    <env name="ARTEMIS_HOME" value="C:\Apache\apache-artemis-2.0.0"/>
>>    <env name="ARTEMIS_INSTANCE"
>> value="C:\Apache\apache-artemis-2.0.0\bin\broker"/>
>>
>>    <logpath>C:\Apache\apache-artemis-2.0.0\bin\broker\log</logpath>
>>    <logmode>roll</logmode>
>>
>>    <executable>%JAVA_HOME%\bin\java.exe</executable>
>>
>> <argument>-Xbootclasspath/a:%ARTEMIS_HOME%\lib\jboss-logmanager-2.0.3.Final.jar</argument>
>>    <argument>-XX:+UseParallelGC</argument>
>>    <argument>-XX:+AggressiveOpts</argument>
>>    <argument>-XX:+UseFastAccessorMethods</argument>
>>    <argument>-Xms512M</argument>
>>    <argument>-Xmx1024M</argument>
>>
>>
>>
>>    <argument>-classpath</argument>
>>    <argument>%ARTEMIS_HOME%\lib\artemis-boot.jar</argument>
>>    <argument>-Dartemis.home=%ARTEMIS_HOME%</argument>
>>    <argument>-Dartemis.instance=%ARTEMIS_INSTANCE%</argument>
>>
>> <argument>-Djava.util.logging.manager=org.jboss.logmanager.LogManager</argument>
>>
>> <argument>-Dlogging.configuration=file:%ARTEMIS_INSTANCE%\etc\logging.properties</argument>
>>
>> <argument>-Djava.security.auth.login.config=%ARTEMIS_INSTANCE%\etc\login.config</argument>
>>
>>
>>
>>
>>    <argument>org.apache.activemq.artemis.boot.Artemis</argument>
>>
>>    <argument>run</argument>
>>
>> </service>
>>
>>
>>
>> --
>> View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-JConsole-Support-tp4725085p4725261.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
>
> --
> Clebert Suconic



-- 
Clebert Suconic

Mime
View raw message