Artemis JConsole Support

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Artemis JConsole Support

mtod
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:

Artemis Run

Artemis Service:

Artemis Service

Any idea why this would happen ?

Thanks

Mike
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Artemis JConsole Support

Tim Bain
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" <[hidden email]> 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.
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Artemis JConsole Support

clebertsuconic
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 <[hidden email]> 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" <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Artemis JConsole Support

clebertsuconic
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 <[hidden email]>
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 <[hidden email]> 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" <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Artemis JConsole Support

mtod
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>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Artemis JConsole Support

clebertsuconic
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 <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Artemis JConsole Support

clebertsuconic
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
<[hidden email]> 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 <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Artemis JConsole Support

mtod
Thanks I have this working now.

Mike
Loading...