|
按照帮助上写的方法
【第一步到第三步最好在关闭controller的情况下执行】
1、转移...Mercury Interactive\Mercury LoadRunner\classes下的jmxri.jar到别的目录,别放到classes目录就好
2、copy ...\bea\weblogic81\server\lib\weblogic.jar 到 ...\Mercury Interactive\Mercury LoadRunner\classes 下
3、修改 ...\Mercury Interactive\Mercury LoadRunner\dat\monitors\WebLogicMon.ini
中的 JVM=...\bea\jdk141_03\bin\javaw.exe【此为我weblogic使用的JDK】
4、打开controller,像添加windows监控那样添加对某一个weblogic的监控,【我没再新建ACL,直接用我的weblogic admin登陆的】
之前没有做第一步导致的后果:
添加监控时 ,弹出一窗口 并报错
==================
Parsing error.
Details: host localhost, port 7001, line: 1.
Reason: 文档的顶层无效。
.
Contents: java.lang.NoSuchMethodError: javax.management.MBeanInfo.getAttributesI()
[Ljavax/management/MBeanAttributeInfo; [MsgId: MMSG-47587]
==================
将上述 WebLogicMon.ini 中 JVM=...\bea\jdk141_03\bin\javaw.exe 的 javaw 改为java 再次添加,发现弹出控制台
==========================================
Web Server started...
Listening on port: 7001
十二月/27/2005 08:55:32: hostInit(2480:192.168.1.61:7001)
十二月/27/2005 08:55:32: Weblogic classes found in CLASSPATH. Will not use CLASS
PATH servlet. However, monitor is limited to a single Weblogic version: 8.1.1.0
十二月/27/2005 08:55:34: getMetricList(192.168.1.61:7001)
java.lang.NoSuchMethodError: javax.management.MBeanInfo.getAttributesI()[Ljavax/
management/MBeanAttributeInfo;
at weblogic.management.info.ExtendedInfo.getAttributes(ExtendedInfo.java
:111)
at com.mercuryinteractive.monitors.xmlsource.ObjectWebLogic.addAllCounte
rs(ObjectWebLogic.java:147)
at com.mercuryinteractive.monitors.xmlsource.MonitorWebLogic.addObject(M
onitorWebLogic.java:229)
at com.mercuryinteractive.monitors.xmlsource.MonitorWebLogic.addObject(M
onitorWebLogic.java:206)
at com.mercuryinteractive.monitors.xmlsource.MonitorWebLogic.addAllObjec
ts(MonitorWebLogic.java:179)
at com.mercuryinteractive.monitors.xmlsource.Monitor.printMetricList(Mon
itor.java:44)
at com.mercuryinteractive.monitors.xmlsource.MonitorWebLogic.printMetric
List(MonitorWebLogic.java:121)
at com.mercuryinteractive.monitors.xmlsource.WebDataHandler.getMetricLis
t(WebDataHandler.java:133)
at com.mercuryinteractive.monitors.xmlsource.WebDataHandler.retrieveResp
onseData(WebDataHandler.java:77)
at mic.webserver.http.MiniWebServer.doGet(MiniWebServer.java:239)
at mic.webserver.http.MiniWebServer.constructHttpResponseBody(MiniWebSer
ver.java:224)
at mic.webserver.http.MiniWebServer.constructHttpResponse(MiniWebServer.
java:301)
at mic.webserver.http.HttpServer$WebServerRunnable.execute(HttpServer.ja
va:236)
at mic.webserver.http.ThreadPool$ThreadPoolRunnable.run(ThreadPool.java:
53)
at java.lang.Thread.run(Thread.java:536)
============================================
[ 本帖最后由 suchboy 于 2005-12-27 13:26 编辑 ] |
|