What is needed to see JMX metrics using Introscope Agent with JBoss AS 7 running in Domain Mode?
Configure JBoss 7 AS in Domain mode
The JBoss 7 AS console differs from the JBoss 6 EAP console. Here are the steps to configure the agent in JBoss 7 AS Domain mode at a server or server group level:
<servers>
<server name="server-one"
group="main-server-group"
auto-start="true">
<system-properties>
<property name="com.wily.introscope.agentProfile"
value="C:/jboss-as-7.1.0.Final/wily/core/config/IntroscopeAgent.profile"
boot-time="true"/>
<property name="jboss.modules.system.pkgs"
value="com.wily,com.wily.*"
boot-time="true"/>
</system-properties>
<jvm name="default">
<jvm-options>
<option value="-javaagent:C:/jboss-as-7.1.0.Final/wily/Agent.jar"/>
<option value="-Dcom.wily.introscope.agentProfile=C:/jboss-as-7.1.0.Final/wily/core/config/IntroscopeAgent.profile"/>
<option value="-Djboss.modules.system.pkgs=org.jboss.byteman,com.wily,com.wily.*"/>
<option value="-Dcom.wily.introscope.agent.agentName=Server1"/>
</jvm-options>
</jvm>
</server>
<server name="server-two"
group="main-server-group"
auto-start="true">
<jvm name="default">
<jvm-options>
<option value="-javaagent:C:/jboss-as-7.1.0.Final/wily/Agent.jar"/>
<option value="-Dcom.wily.introscope.agentProfile=C:/jboss-as-7.1.0.Final/wily/core/config/IntroscopeAgent.profile"/>
<option value="-Djboss.modules.system.pkgs=org.jboss.byteman,com.wily,com.wily.*"/>
<option value="-Dcom.wily.introscope.agent.agentName=Server2"/>
</jvm-options>
</jvm>
<socket-bindings port-offset="150"/>
</server>
<server name="<server_hostname>"
group="other-server-group"
auto-start="false">
<socket-bindings port-offset="250"/>
</server>
</servers>
Note that these instructions differ from what is needed for JBoss 6 EAP. A separate article discusses the steps to take for JBoss 6 EAP. See below
How do I set up JBoss 6 EAP with the Introscope Agent and seeJMX metrics