AnsweredAssumed Answered

Configuring javaagent with JBOSS EAP 6.2

Question asked by dave.richards on Apr 7, 2014
Latest reply on Apr 9, 2014 by dave.richards

Hi

 

Can anyone advise how we can configure JBOSS host.xml for javaagent instrumentation.

We don't have the capability to edit run.sh or the .conf files.

I have enclose our config below.

The application servers start up and connect to the EM, but disconnect instantly.

I can't find anything in logs to indicate why they are disconnecting.

If we remove the Wily config lines from the host.xml the servers start up.

 

<jvms>
        <jvm name="default">
            <heap size="64m" max-size="256m"/>
            <permgen size="256m" max-size="256m"/>
            <jvm-options>
                <option value="-server"/>
                <option value="-Djboss.modules.system.pkgs=com.wily,com.wily.*"/>
                <option value="-javaagent:/apps/bweb/wily/ext/Agent.jar"/>
            </jvm-options>
        </jvm>
    </jvms>

    <servers>
        <server name="server_01" group="group_01" auto-start="true">
            <socket-bindings port-offset="0"/>
            <jvm name="default" debug-enabled="false">
            <jvm-options>
               <option value="-Dcom.wily.introscope.agentProfile=/apps/bweb/wily/profiles/IntroscopeAgent.jboss.profile"/>
               <option value="-Dcom.wily.introscope.agent.agentName=server_01"/>
            </jvm-options>
            </jvm>
        </server>
        <server name="server_02" group="group_01" auto-start="true">
            <socket-bindings port-offset="50"/>
            <jvm name="default" debug-enabled="false">
            <jvm-options>
               <option value="-Dcom.wily.introscope.agentProfile=/apps/bweb/wily/profiles/IntroscopeAgent.jboss.profile"/>
               <option value="-Dcom.wily.introscope.agent.agentName=server_02"/>
            </jvm-options>
            </jvm>
        </server>

 

 

Outcomes