-
1. Re: Managing JBoss 4.x & 5.1.0
matthias_b Feb 21, 2013 4:10 AM (in response to matthias_b)Sorry, now it works !
I don't need any help.
-
2. Re: Managing JBoss 4.x & 5.1.0
matthias_b Feb 22, 2013 3:15 AM (in response to matthias_b)Okay, next question:
1.) A question about alerts:
I'm finding a metric for the JVM heap size. --> Free Memory.
When I define an alert for them, it monitors ALL instances on the machine.
What I have to do, to monitor only ONE instance on the machine ?
-
3. Re: Managing JBoss 4.x & 5.1.0
lkrejci Feb 22, 2013 5:58 AM (in response to matthias_b)How did you define the alert definition?
If you went to Administration -> Alert Definition Templates and added a definition for Free Memory, then yes, the alert definition would be defined on every JVM on the machine.
But you can also go to a concrete JVM resource, like a JVM under AS4 server resource and define an alert definition just for that single JVM.
In the latter case the alert should not fire for any other JVM than the one you defined it for.
-
4. Re: Managing JBoss 4.x & 5.1.0
matthias_b Feb 25, 2013 8:08 AM (in response to lkrejci)I don't know, who I can do this ?
Please describe it step-by-step.
I don't find a concrete JVM resource under AS4 server resource.
-
5. Re: Managing JBoss 4.x & 5.1.0
lkrejci Feb 25, 2013 10:14 AM (in response to matthias_b)Your problem might be that the AS4 platform might not even be exposing the JVM metrics that RHQ needs. When you connect to your AS4 instance (using the same creds as RHQ is configured to use) using some JMX console like jconsole, do you see MBeans under java.lang?
-
6. Re: Managing JBoss 4.x & 5.1.0
matthias_b Feb 25, 2013 10:29 AM (in response to lkrejci)Under the jmx-console I can see the MBean: org.jboss.system.server.ServerInfo.FreeMemory.
-
7. Re: Managing JBoss 4.x & 5.1.0
lkrejci Feb 25, 2013 10:36 AM (in response to lkrejci)For example:
$JBOSS_HOME/bin/twiddle.sh -s jnp://<you-host>:<your-port> -u <user> -p <password> query 'java.lang:*'
should return some results.
If it is not the case, you can try start your AS4 server with "-Djboss.platform.mbeanserver" system property or google for the way how to start JBoss AS4 with platform mbeans exposed (I remember there have been some issues with it in older versions of AS4. I tried it with JBoss EAP 4.3.0 CP08 and the jboss.platform.mbeanserver property was enough).