Monitoring Weblogic using JMX in LoadRunner

21 February, 2008 – 7:53 am

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 <installdir>\LoadRunner\classes directory

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

Edit the <installdir>\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.

Share it: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netscape
  • Reddit
  • Slashdot
  • Technorati
  • YahooMyWeb
  1. 2 Responses to “Monitoring Weblogic using JMX in LoadRunner”

  2. 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 ;)

    By Tim on Apr 17, 2008

  3. 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?

    By Sara on Sep 1, 2008

Post a Comment

*
To prove that you're not a bot, enter this code
Anti-Spam Image