Sorry, now it works !
I don't need any help.
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 ?
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.
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.
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?
Under the jmx-console I can see the MBean: org.jboss.system.server.ServerInfo.FreeMemory.
$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).