AppDynamics Monitoring Extension for use with WebLogic

Use Case

Oracle WebLogic Server is an application server for building and deploying enterprise Java EE applications. This extension aims to provide JMX monitoring capabilities for WebLogic servers and reports useful statistics to AppDynamics Controller.

This extension works only with the standalone machine agent.


  1. Before the extension is installed, the prerequisites mentioned here need to be met. Please do not proceed with the extension installation if the specified prerequisites are not met.
  2. This extension has a dependency on wlclient.jar and wljmxclient.jar found in WL_HOME\lib\ where WL_HOME is the directory in which you installed WebLogic Server. Copy these jars to <MachineAgent_Home>/monitorsLibs/ directory.
  3. Enable JMX capability in your WebLogic instance. Refer Troubleshooting section for more details.


  1. Download and unzip into < MACHINE_AGENT_HOME>/monitors/
  2. Copy wlclient.jar, wljmxclient.jar from WL_HOME\lib\ to <MachineAgent_Home>/monitorsLibs/ directory.
  3. Edit the file config.yml located at <MachineAgent_Dir>/monitors/WebLogicMonitor The metricPrefix of the extension has to be configured as specified here. Please make sure that the right metricPrefix is chosen based on your machine agent deployment, otherwise this could lead to metrics not being visible in the controller.
  4. Restart the Machine Agent.

In the AppDynamics Metric Browser, look for: Application Infrastructure Performance | <Tier> | Custom Metrics | WebLogic in case of default metric path


Note : Please make sure not to use tab (\t) while editing yaml files. You can validate the yaml file using a yaml validator

  1. Configure the WebLogic Extension by editing the config.yml file in <MACHINE_AGENT_HOME>/monitors/WebLogicMonitor/.
  2. Specify the WebLogic parameters in the config.yml.

    For eg.

             - displayName: "Server1"
               jmxServiceUrl: "service:jmx:t3://<host>:<port>/jndi/"
               username: "weblogic"
               password: "admin123"
               jmx.remote.protocol.provider.pkgs: ""
               jmx.remote.x.request.waiting.timeout: 10000
                 - objectName: "com.bea:ServerRuntime=AdminServer,Name=AdminServer,Type=JVMRuntime"
                   metricPathFromObjectNameProperties: ["Name", "Type"]
                       - HeapSizeMax : "HeapSizeMax"
                       - HeapSizeCurrent : "HeapSizeCurrent"
                       - HeapFreeCurrent : "HeapFreeCurrent"
                 - objectName: "com.bea:ServerRuntime=AdminServer,Name=AdminServer,Type=JTARecoveryRuntime,JTARuntime=JTARuntime"
                   metricPathFromObjectNameProperties: ["Name", "Type", "JTARuntime"]
                       - InitialRecoveredTransactionTotalCount: "InitialRecoveredTransactionTotalCount"
           # number of concurrent tasks
           numberOfThreads: 3
           metricPrefix: "Custom Metrics|WebLogic|"


Workbench is an inbuilt feature provided with each extension in order to assist you to fine tune the extension setup before you actually deploy it on the controller. Please review the following document on How to use the Extensions WorkBench


You can use this extension to get all metrics that are available through the JMX interface. In order to do so though, you will have to make sure that all metrics are defined correctly. Please follow the next step in order to get this right.

You will have to list each mBean separately in the config.yml file. For each mBean you will have to add an objectName,metricPathFromObjectNameProperties and metrics tag. The following example shows exactly how you should do that. You will have to add each object name property to metricPathFromObjectNameProperties that is listed in the objectName for metric tree hierarchy. Under metrics is where you have the ability to include all the metrics that you would like to monitor.

    - objectName: "com.bea:ServerRuntime=AdminServer,Name=AdminServer,Type=JVMRuntime"
      metricPathFromObjectNameProperties: ["Name", "Type"]
                - HeapSizeMax : "HeapSizeMax"
                - HeapSizeCurrent : "HeapSizeCurrent"
                - HeapFreeCurrent : "HeapFreeCurrent"

Note : By default, a Machine agent or a AppServer agent can send a fixed number of metrics to the controller. To change this limit, please follow the instructions mentioned here. For eg.

    java -Dappdynamics.agent.maxMetrics=2500 -jar machineagent.jar


  1. Please look at the troubleshooting document and make sure that everything is followed correctly.
  2. Check if JMX is enabled by connecting remotely to WebLogic instance. cd to JAVA_HOME/bin directory to execute the following command
./jconsole -J-Djava.class.path=$JAVA_HOME/lib/jconsole.jar:$WL_HOME/server/lib/wljmxclient.jar

In the dialog box, enter the URL with host, port(service:jmx:t3://<host>:<port>/jndi/, username and password to check the JMX connectivity.


Always feel free to fork and contribute any changes directly via GitHub.


For any questions or feature request, please contact AppDynamics Support.