Jboss EAP 7.3 standalone won't startup after APM Java agent is deployed
search cancel

Jboss EAP 7.3 standalone won't startup after APM Java agent is deployed

book

Article ID: 217689

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

JBoss EAP 7.3 won't startup after deploying the APM Java Agent v21.x for JBoss using OpenJDK 11.0.2

Environment

APM SaaS or On-Premise 10.7, 20.x

APM Java Agent for JBoss
OpenJDK 11.0.2
JBoss EAP 7.3
MS Windows

Resolution

Use the following steps to allow JBoss to start with the agent deployed:

1. Set the following JAVA_OPTS statements in the JBoss standalone.bat file :

set JAVA_OPTS="%JAVA_OPTS% -javaagent:D:\jboss-eap-7.3\wily\Agent.jar"
set JAVA_OPTS="%JAVA_OPTS% -Dcom.wily.introscope.agentProfile=D:\jboss-eap-7.3\wily\core\config\IntroscopeAgent.profile"
set JAVA_OPTS="%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.byteman,com.wily,com.wily.*"
set JAVA_OPTS="%JAVA_OPTS% -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
set JAVA_OPTS="%JAVA_OPTS% -Djava.awt.headless=true"
set JAVA_OPTS="%JAVA_OPTS% -Dcom.wily.org.apache.commons.logging.Log=com.wily.org.apache.commons.logging.impl.NoOpLog"
set JAVA_OPTS="%JAVA_OPTS% --add-exports java.instrument/sun.instrument=ALL-UNNAMED --add-exports jdk.management/com.sun.management.internal=ALL-UNNAMED"
set JAVA_OPTS="%JAVA_OPTS% --patch-module java.base=D:\jboss-eap-7.3\wily\common\AgentSocket.jar"


 
2. Remove the spring boot extension (spring-boot-d92d6acbxt28-21.4.0.34) from introscope.agent.extensions.bundles.load= in AGENT_HOME\extensions\Extensions.profile

3. Set the following in the IntroscopeAgent.profile:

introscope.agent.deep.instrumentation.enabled=false
introscope.agent.deep.trace.enabled=false
introscope.agent.deep.errorsnapshot.enable=false

Restart the JBoss EAP server

Additional Information

For details on how to connect APM SaaS agents or On premise 11.x, 19.x, 20.x, 21.x Agents to APM EM 10.7 On-premise see this KD article: