-
1. Re: HornetQ not added to agent resources
ips Apr 18, 2012 5:46 PM (in response to jeremie.granat)The HornetQ JVM will only be discovered by the jmx plugin if you enable JMX Remoting or, in RHQ 4.3 or later only, add the -Dorg.rhq.resourceKey=FOO option to your JVM's command line. For more info, see: http://rhq-project.org/display/JOPR2/Generic+JVM+Product+Configuration However, this will discover a generic "JMX Server" Resource, which will not expose any HornetQ-specific metrics, operations, etc. The HornetQ-specific Resources can currently only be discovered and managed by RHQ when HornetQ is running inside an AS5/6 instance. This is because the hornetq plugin's rhq-plugin.xml defines the "JMS Manager" Resource type as follows:
<service name="JMS Manager" discovery="JMSManagerDiscoveryComponent" class="JMSManagerComponent" singleton="true"> <runs-inside> <parent-resource-type name="JBossAS Server" plugin="JBossAS5"/> </runs-inside>
So it will only get discovered as a child of a (AS5) "JBossAS Server" Resource. Standalone-mode HornetQ instances will *not* be discovered. The hornetq plugin is owned by the HornetQ team, not by the RHQ/JON team, so you would need to create an enhancement request in https://issues.jboss.org/browse/HORNETQ. Or, if you have an EAP Managed subscription, you can create a support case and request the enhancement, which will improve the chance of it getting implemented. Note, the new jboss-as-7 plugin has builtin support for discovering and manageing HornetQ deployed to AS7.
-
2. Re: HornetQ not added to agent resources
jeremie.granat Apr 19, 2012 2:51 AM (in response to ips)Hi,
So there is no means to monitor HornetQ in a meaningful way if it is used as a stand alone? That's kind of.... unusable.
HornetQ seems to already be recognized as a JMX server (see first post) but it is not added to ther recources and I have no idea how to tell him to do that...
Greets
Jeremie
-
3. Re: HornetQ not added to agent resources
ips Apr 19, 2012 5:25 PM (in response to jeremie.granat)> So there is no means to monitor HornetQ in a meaningful way if it is used as a stand alone? That's kind of.... unusable.
Correct, discovery of standalone HornetQ servers is currently not implemented, though I don't think it would be that much work to implement. As I said, file a HORNETQ jira issue, or a support case if you're an EAP Managed customer.
> HornetQ seems to already be recognized as a JMX server (see first post) but it is not added to ther recources and I have no idea how to tell him to do that...
Enable JMX remoting on the command line you use to start the HornetQ JVM. Did you read http://rhq-project.org/display/JOPR2/Generic+JVM+Product+Configuration ? Refer to the standard Sun docs for how to enable JMX Remoting:
http://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html#remote
You'll probably want to disable password authentication and SSL.
-
4. Re: HornetQ not added to agent resources
jeremie.granat Apr 20, 2012 3:01 AM (in response to ips)Remote JMX has been enabled and I can successfully administer the server from a JConsole instance.
-
5. Re: HornetQ not added to agent resources
ips Apr 24, 2012 11:16 AM (in response to jeremie.granat)I'm not sure why it's not being discovered by the jmx plugin as a JMX Server then. Can you run the following command from the RHQ Agent prompt and paste the results in to this thread: debug --enable discovery --plugin JMX --verbose Also paste in any relelvant messages that get written to the Agent log after those commands are executed.