-
1. Re: How to add a JBoss AS JVM to a server
ips Jan 15, 2010 12:55 PM (in response to obedmhg)Can you try with only: export JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver" I think that's all you need. -
2. Re: How to add a JBoss AS JVM to a server
obedmhg Jan 15, 2010 1:16 PM (in response to ips)Hi Ian,
I changed to only use export JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver" but is the same story I am not able to add it inside one of my jboss servers, maybe I am missing something.
Once I added this I went to add Manually server and I select JMX server but wen I added it Is added as Java VM on my platform instead of my jboss instance that is configured.
Do you know where I can add the Jboss AS JVM? or how? becuase neither a Discovery worked
Thanks for your help Ian.
-
3. Re: How to add a JBoss AS JVM to a server
jayshaughnessy Jan 15, 2010 3:24 PM (in response to obedmhg)If I understand correctly, your AS was already in inventory. You then shut it down and added the properties to expose the platform mbeans. Then you restarted the AS server.
If, during this whole time your RHQ Agent was running it's possible that you need to force an agent discovery for it to automatically discover the new resources. Try restarting the agent or executing the agent prompt command 'discovery -f'.. Or, uninventory the entire AS Server resource and reimport it after it has been rediscovered.
-
4. Re: How to add a JBoss AS JVM to a server
ips Jan 15, 2010 3:39 PM (in response to jayshaughnessy)Just to add a bit more, service discovery scans, which discover services and non-top-level servers (such as the JBoss AS JVM), only run automatically once every 24 hours, so when you know you have something new to autodiscover and don't want to wait up to 24 hours, you can manually kick off a full scan (i.e. a server scan followed by a service scan) using the Agent prompt command "discovery -f" or the Discover operation on the platform Resource. -
5. Re: How to add a JBoss AS JVM to a server
obedmhg Jan 15, 2010 3:58 PM (in response to jayshaughnessy)Thanks Ian and Jay,
I fixed the problem thanks to you
What I did was:
Restart my Jboss instance
Restart the rhq Agent
And run a Discovery
Just like you said
Thank you very much for your time and your knowledge.