Not able to get the JMX metrics as expected in 10.8 Wily
search cancel

Not able to get the JMX metrics as expected in 10.8 Wily

book

Article ID: 272146

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

We have moved from Wily 10.5 Agent to Wily 10.8 Agents for our new WebLogic 12.2.1.4 Application servers.

Earlier we used to load the WebAppSupport.jar from the startup script and it was working fine.

Below is what we loaded for 10.5 and what we loaded for 10.8

10.5 Agent

WILY_WEBGENT_CLASSPATH=${WILY_HOME}/common/WebAppSupport.jar

10.8 Agent

WILY_WEBGENT_CLASSPATH=${WILY_HOME}/core/ext/WebAppSupport.jar

Below is what our Wily configuration loads during the startup of the WebLogic application

WILY_HOME=/app/wls/wily/wily/releases/2022.3/
JAVA_OPTIONS="${JAVA_OPTIONS} -javaagent:${WILY_HOME}/Agent.jar -Dcom.wily.introscope.agent.agentName=${SERVER_NAME} -Dcom.wily.introscope.agentProfile=${WILY_HOME}/core/config/IntroscopeAgent-${SERVER_NAME}.profile"
#WILY_WEBGENT_CLASSPATH=${WILY_HOME}/common/WebAppSupport.jar
WILY_WEBGENT_CLASSPATH=${WILY_HOME}/core/ext/WebAppSupport.jar
CLASSPATH=${CLASSPATH}:${WILY_WEBGENT_CLASSPATH}
export WILY_HOME WILY_WEBGENT_CLASSPATH CLASSPATH
export JAVA_VENDOR JAVA_OPTIONS

We are not able to view the JMX metrics as we used to see in our 10.5 Agent.

Environment

  • Release: 10.8
  • Application Server: WebLogic12.2.1.4
  • Wily Version MOM, Collector, Agent: 10.8

Resolution

#1 Copy the JMX config settings from the APM 10.5 agent and use with APM 10.7 Java Agent.

Some config settings :

introscope.agent.jmx.enable=true
introscope.agent.jmx.name.filter=jboss.modules*type=ModuleLoader,jboss.as*subsystem=jca,jboss.as*subsystem=datasources,java.lang|type=Threading:*ThreadCount,java.lang|type=ClassLoading*:*ClassCount -- add your own values
introscope.agent.jmx.excludeStringMetrics=true. Not sure if you want string metrics or not.

Or: Adjust the remotejmx configuration to get the desired the JMX metrics.

Start with: introscope.agent.remotejmx.system.s1.mbeanPatternsWhiteList=com.bea*:*


#2 Use Remote JMX. See https://knowledge.broadcom.com/external/article?articleId=192738

****
You may use either the APMIA or Java Agent. APMIA is a superset of the old EPA.

Suggest first trying the Java Agent. Try with the APM 10.5 JMX settings in the APM 10.8 Agent

You can find more about APMIA here:

DX APM - Infrastructure Agent