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.

Pre-requisites

  1. 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.
  2. Enable JMX capability in your WebLogic instance. Refer Troubleshooting section for more details.

Installation

  1. Download and unzip WebLogicMonitor.zip into < MACHINE_AGENT_HOME>/monitors/
  2. Copy wlclient.jar, wljmxclient.jar from WL_HOME\lib\ to <MachineAgent_Home>/monitorsLibs/ directory.
  3. Configure the extension by referring to the below section.
  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

Configuration

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.

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

Workbench

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

Metrics

  • JVM heap monitoring: HeapSizeMax, HeapSizeCurrent, HeapFreeCurrent, UsedMemory in MB
  • JTA transactions monitoring: ActiveTransactionsTotalCount
  • JDBC datasources monitoring: CurrCapacity, ActiveConnectionsCurrentCount, WaitingForConnectionCurrentCount
  • JMS connections monitoring: ConnectionsCurrentCount
  • JMS queues monitoring: MessagesCurrentCount, MessagesPendingCount, ConsumersCurrentCount
  • HTTP sessions monitoring: OpenSessionsCurrentCount

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

Troubleshooting

  1. 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 -J-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote

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

Contributing

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

Support

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