You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by mtod <mt...@thetods.net> on 2017/04/19 15:52:36 UTC

Artemis JConsole Support

I have Artemis 2.0 installed on a Windows Box when I run it using artemis.cmd
run
I can see the local jconsole and connect and works fine.

When I install it as a windows service using artemis-service.exe install
then start the service I can't access the service using jconsole.

see attached images.

Artemis Run:

<http://activemq.2283324.n4.nabble.com/file/n4725085/artemisrun.jpg> 

Artemis Service:

<http://activemq.2283324.n4.nabble.com/file/n4725085/artemisService.jpg> 

Any idea why this would happen ?

Thanks

Mike



--
View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-JConsole-Support-tp4725085.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Artemis JConsole Support

Posted by mtod <mt...@thetods.net>.
Thanks I have this working now.

Mike



--
View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-JConsole-Support-tp4725085p4725728.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Artemis JConsole Support

Posted by Clebert Suconic <cl...@gmail.com>.
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
<cl...@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 <mt...@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

Re: Artemis JConsole Support

Posted by Clebert Suconic <cl...@gmail.com>.
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 <mt...@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

Re: Artemis JConsole Support

Posted by mtod <mt...@thetods.net>.
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.

Re: Artemis JConsole Support

Posted by Clebert Suconic <cl...@gmail.com>.
What I meant to ask was.  Look at the arguments passed to the JVM in that
service.xml used by the .exe. I'm using an iPhone now and I don't remember
the file name.  If u can't find it let me know and someone will help out.




On Wed, Apr 19, 2017 at 7:15 PM Clebert Suconic <cl...@gmail.com>
wrote:

> It could be some different settings used as an argument through the
> service.
>
> Look at the xml for any differences please.
>
>
>
> On Wed, Apr 19, 2017 at 1:55 PM Tim Bain <tb...@alumni.duke.edu> wrote:
>
>> I don't have an answer for you, but you might want to post this question
>> to
>> Stack Overflow, because it's really a more general JConsole and JVM
>> question than an ActiveMQ or Artemis specific question, and you may find
>> more people able to answer it there.
>>
>> On Apr 19, 2017 10:03 AM, "mtod" <mt...@thetods.net> wrote:
>>
>> > I have Artemis 2.0 installed on a Windows Box when I run it using
>> > artemis.cmd
>> > run
>> > I can see the local jconsole and connect and works fine.
>> >
>> > When I install it as a windows service using artemis-service.exe install
>> > then start the service I can't access the service using jconsole.
>> >
>> > see attached images.
>> >
>> > Artemis Run:
>> >
>> > <http://activemq.2283324.n4.nabble.com/file/n4725085/artemisrun.jpg>
>> >
>> > Artemis Service:
>> >
>> > <http://activemq.2283324.n4.nabble.com/file/n4725085/artemisService.jpg
>> >
>> >
>> > Any idea why this would happen ?
>> >
>> > Thanks
>> >
>> > Mike
>> >
>> >
>> >
>> > --
>> > View this message in context: http://activemq.2283324.n4.
>> > nabble.com/Artemis-JConsole-Support-tp4725085.html
>> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>> >
>>
> --
> Clebert Suconic
>
-- 
Clebert Suconic

Re: Artemis JConsole Support

Posted by Clebert Suconic <cl...@gmail.com>.
It could be some different settings used as an argument through the
service.

Look at the xml for any differences please.



On Wed, Apr 19, 2017 at 1:55 PM Tim Bain <tb...@alumni.duke.edu> wrote:

> I don't have an answer for you, but you might want to post this question to
> Stack Overflow, because it's really a more general JConsole and JVM
> question than an ActiveMQ or Artemis specific question, and you may find
> more people able to answer it there.
>
> On Apr 19, 2017 10:03 AM, "mtod" <mt...@thetods.net> wrote:
>
> > I have Artemis 2.0 installed on a Windows Box when I run it using
> > artemis.cmd
> > run
> > I can see the local jconsole and connect and works fine.
> >
> > When I install it as a windows service using artemis-service.exe install
> > then start the service I can't access the service using jconsole.
> >
> > see attached images.
> >
> > Artemis Run:
> >
> > <http://activemq.2283324.n4.nabble.com/file/n4725085/artemisrun.jpg>
> >
> > Artemis Service:
> >
> > <http://activemq.2283324.n4.nabble.com/file/n4725085/artemisService.jpg>
> >
> > Any idea why this would happen ?
> >
> > Thanks
> >
> > Mike
> >
> >
> >
> > --
> > View this message in context: http://activemq.2283324.n4.
> > nabble.com/Artemis-JConsole-Support-tp4725085.html
> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> >
>
-- 
Clebert Suconic

Re: Artemis JConsole Support

Posted by Tim Bain <tb...@alumni.duke.edu>.
I don't have an answer for you, but you might want to post this question to
Stack Overflow, because it's really a more general JConsole and JVM
question than an ActiveMQ or Artemis specific question, and you may find
more people able to answer it there.

On Apr 19, 2017 10:03 AM, "mtod" <mt...@thetods.net> wrote:

> I have Artemis 2.0 installed on a Windows Box when I run it using
> artemis.cmd
> run
> I can see the local jconsole and connect and works fine.
>
> When I install it as a windows service using artemis-service.exe install
> then start the service I can't access the service using jconsole.
>
> see attached images.
>
> Artemis Run:
>
> <http://activemq.2283324.n4.nabble.com/file/n4725085/artemisrun.jpg>
>
> Artemis Service:
>
> <http://activemq.2283324.n4.nabble.com/file/n4725085/artemisService.jpg>
>
> Any idea why this would happen ?
>
> Thanks
>
> Mike
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/Artemis-JConsole-Support-tp4725085.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>