Alan, I don't know of any reason. As a sanity check have you tried
adding the property with -D to see if the JVM is discovered? If that
doesn't work then there may be a different issue.
On 11/30/2011 6:32 PM, Alan Evans wrote:
I am using JBoss AS 5 and RHQ 4.2.0 and I am unable to get my agents
to discover the JBoss JVMs.
I am suspicious that it is because I have put
"jboss.platform.mbeanserver" in a properties file rather than in a -D
commandline option.
./run.sh takes a --properties command line which allows you to specify
jboss and other system properties without using a -D commandline
option. One of my Java pet-peeves is that it takes a million
different properties all of which have really long names to do
anything in java. Then you end up with 'ps aux' output that is
extremely unreadable.
So for JBoss anything I can put in a properties file I do! From what
I can tell putting "jboss.platform.mbeanserver" in a properties file
and using --properties is a sufficient replacement for the -D option.
In jmx-console the java.lang is visible and we use another tool that
requires the jboss.platform.mbeanserver property that seems to work
fine.
Is there any reason that putting jboss.platform.mbeanserver in a
properties file instead of on the command line would prevent RHQ from
being able to discover that Boss was exposing information from the
JVM?
Regards,
-Alan
_______________________________________________
rhq-users mailing list
rhq-users(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/rhq-users