When copying WebAppSupport.jar to the core/ext dir to enable JMX metrics, the JBoss EAP 7 server does not start

book

Article ID: 76440

calendar_today

Updated On:

Products

APP PERF MANAGEMENT CA Application Performance Management Agent (APM / Wily / Introscope) CUSTOMER EXPERIENCE MANAGER INTROSCOPE

Issue/Introduction

Enabling JMX monitoring on JBoss EAP 7.0.7, the application server fails to start reporting errors reading internal attribute.

Below are some errors reported in the jboss log:
12:36:11,775 ERROR [org.jboss.as.controller.management-operation] (Agent Heartbeat) WFLYCTL0013: Operation ("read-resource-description") failed - address: ([ ("subsystem" => "resource-adapters"), ("resource-adapter" => "wmq.jmsra.rar"), ("connection-definitions" => "senderQCF"), ("statistics" => "extended") ]) - failure description: "WFLYCTL0030: No resource definition is registered for address [ (\"subsystem\" => \"resource-adapters\"), (\"resource-adapter\" => \"wmq.jmsra.rar\"), (\"connection-definitions\" => \"senderQCF\"), (\"statistics\" => \"extended\") ]" ...
12:36:55,082 ERROR [org.jboss.as.controller.management-operation] (Agent Heartbeat) WFLYCTL0013: Operation ("read-attribute") failed - address: ([ ("subsystem" => "infinispan"), ("cache-container" => "web"), ("thread-pool" => "persistence") ]) - failure description: "WFLYCTL0216: Management resource '[(\"subsystem\" => \"infinispan\")]' not found" ...
12:37:21,175 ERROR [org.jboss.as.controller.management-operation] (Agent Heartbeat) WFLYCTL0013: Operation ("read-attribute") failed - address: ([ ("subsystem" => "infinispan"), ("cache-container" => "server"), ("thread-pool" => "remote-command") ]) - failure description: "WFLYCTL0216: Management resource '[(\"subsystem\" => \"infinispan\")]' not found"

Cause

We can see these 2 ERRORs from "ServerService Thread Pool -- 82" in between the "Agent Heartbeat"

10:23:46,176 ERROR [landing_cat] (ServerService Thread Pool -- 82) com.myportal.portalwar.listener.ContextListener - Version of PortalWar : 1378987432
10:23:47,103 ERROR [landing_cat] (ServerService Thread Pool -- 82) com.myportal.portalwar.listener.ContextListener - Version of config.xml : 5

We understand that there is handling here which has conflict with the MBean polling that Agent JMX is doing at same time on "Agent Heartbeat" thread.

 

Environment

Introscope Agent 10.5.1.8
JBoss EAP: 7.0.7 (standalone mode)
Openjdk: 1.8.0_141
Red Hat Enterprise Linux Server release 7.4

 

Resolution

We have created a hotfix build to add some delay before we start to poll MBeans, to avoid the conflict during startup.

The required build is 10.5.1 HF62 (DE339968)

The start up delay to poll for JMX is configurable with this property, only with the above hotfix build.

introscope.agent.webappsupport.startDelayInSeconds=5

 

Additional Information

00935715