Monitoring Weblogic using JMX in LoadRunner

When configuring the WebLogic (JMX) monitor (Add Measurements via the Run tab in Controller) you may be presented with the following error:

Java Virtual Machine Version mismatch: Required version: 1.3

To overcome this try the following steps …

Rename the jmxri.jar file to jmxri.bak in the \LoadRunner\classes directory

Copy the weblogic.jar from your application server directory typically from
\bea\wlserver_\server\lib
to the
\LoadRunner\classes directory

Edit the \LoadRunner\dat\monitors\WebLogicMon.ini
as per the following:


[WebLogicMon]
JVM=javaw.exe
JavaVersion=1.5
;JavaVendor=Sun Microsystems Inc.

JVM_CLASSES1=jmxri.jar
JVM_CLASSES2=weblogicmon.jar

JVM_ARG1=-Dweblogic.ThreadPoolSize=20
JVM_ARG2=-Dweblogic.ThreadPoolPercentSocketReaders=90

DetectVersions=0

Weblogic=weblogic.jar
Port=7001

MetricListURL=/?type=0&id=10&host=%h
MetricDataURL=/?type=0&id=11&host=%h
MetricRequestURL=/?type=0&id=12&host=%h
ShutdownHostURL=/?type=0&id=13&host=%h
InitHostURL=/?type=0&id=14&host=%h

MonitorType=WebLogic
DlgTitle=BEA WebLogic Monitor
ExtensionDll=WebLogicMonExt.dll

ActivateCounters=1
QueryLoginInfo=1
RefreshMetricList=1
DefaultPort=1112
SourceHost=localhost
PingHostURL=/?type=0&id=201

Making sure that the JavaVersion and Port match your client/server settings!

Restart the Controller and you should now be able to add the appropriate counters using the WebLogic (JMX) monitor.

Social tagging: > >

5 Responses to Monitoring Weblogic using JMX in LoadRunner

  1. Tim

    I’ve ended up ditching this method in favour of something far less clunky, and much more free. As in free beer.

    Check out my revision using JMX and JRuby. And yes, you can still import data into LoadRunner Analysis if you really have to ;)

  2. Sara

    Need help : I have done all required changes in weblogicmon file and class folder of loadrunner.
    Am able to view BA Weblogic Monitor configuration dialog box and Performance Data root, but this Performance Data root is not having any measurements.Can you please let me know what could be the problem?

  3. elke

    Did you restart the controller?

  4. sky

    I have the same question. I have configured it.I can view BA Weblogic Monitor configuration dialog box and Performance Data root,but this Performance Data root is not having any measurements. I have restarted the controller.But the same before.Pls advise how to fix it. Thanks

  5. Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative.
    Monitoring Weblogic using JMX in LoadRunner Altentee » Performance & Test Automation Experts