淘宝商城(天猫)高级技术专家.3年研发+3年性能测试调优/系统测试+4年团队管理与测试架构、研发系统实践. 新舞台新气象, 深化测试基础架构及研发架构,希望能在某个技术领域成为真正的技术大牛。欢迎荐才http://bbs.51testing.com/viewthread.php?tid=120496&extra=&page=1 .邮件: jianzhao.liangjz@alibaba-inc.com,MSN:liangjianzhao@163.com.微博:http://t.sina.com.cn/1674816524

Loadrunner监控weblogic

上一篇 / 下一篇  2007-03-29 13:43:12 / 个人分类:loadrunner性能测试经验

下载

http://commerce.bea.com/showproduct.jsp?family=WLS&major=9.2&minor=0

选择windows平台。

输入注册名与密码。

安装

点击server920_win32.exe,默认全部安装。

 

配置domain

Tools->configuration wizards->create a new weblogic domain,默认,输入weblogic管理员的用户名与密码 weblogic/weblogic

 

参考http://dev2dev.bea.com.cn/techdoc/200306517.html。但与此有区别!

启动domain

User project s-> mydomain-> start 

日志bea\user_projects\domains\mydomain\servers\AdminServer\logs

测试

http://localhost:7001/console

此为weblogic性能监控页面。

 

选择JMX监控

 

LoadRunner 7.x and 8.x does not support monitoring against WebLogic8.x out of the box. In order to Monitor WebLogic8.x:

1.     Go to <LoadRunner>\classes and rename the file jmxri.jar to something else.

2.     Go to <LoadRunner>\dat\monitors and edit the weblogicmon.ini:

a.            Set the JVM to point to JDK1.4

b.           Comment out the JavaVersion entry if there is a complain about JDK versions

c.            DO NOT comment out the reference to jmxri.jar in this file It must remain as shown below:

JVM_CLASSES1=jmxri.jar

3.     Copy the weblogic.jar from the server to the <LoadRunner>\classes directory.

4.     In WebLogic 8.x server console, do not setup administration port on SSL.

 

配置weblogic9.2 + jdk1.5(失败)

配置weblogicmon.ini

Jvm= JVM=D:\Sun\AppServer\jdk\bin\java.exe

 

Add measument10.0.72.30:7001之后弹出用户名/密码框,输入weblogic/weblogic,之后console显示:

Starting http server...

Loading webserver.properties[C:\Program Files\Mercury Interactive\Mercury LoadRu

nner\classes\weblogicmon.jar(com\mercuryinteractive\monitors\xmlsource\webserver

.properties)...

 

Web Server started...

Listening on port: 1112

八月/22/2006 22:38:13: hostInit(4396:10.0.72.30)

八月/22/2006 22:38:13: Weblogic classes found in CLASSPATH. Will not use CLASSPA

TH servlet. However, monitor is limited to a single Weblogic version:9.2.0.0

八月/22/2006 22:38:16: getMetricList(10.0.72.30:7001)

八月/22/2006 22:38:17: Found 0 counters in 1 objects in 1 seconds

 

 

 没有获取到度量数据!

 

 

跟踪user_projects\domains\mydomain\servers\AdminServer\logs\access.log:

 

10.0.68.48 - - [22/八月/2006:22:47:18 +0800] "HEAD /classes/jndi.properties HTTP/1.1" 404 0

10.0.68.48 - - [22/八月/2006:22:47:18 +0800] "GET /classes/weblogic/factories/t3/t3EnvironmentFactory.class HTTP/1.1" 404 0

 

telnet 10.0.72.30 7001

GET /classes/weblogic/factories/t3/t3EnvironmentFactory.class HTTP/1.1

 

当不启动weblogic服务时,

 

暂时没有办法监控weblogic9!

采用jdk1.4+weblogic8.jar?

     Jdk1.5+ weblogic8.jar?

    Jdk1.4+ weblogic9.jar?

Weblogic8.1+jdk1.4

 

Jdk1.4:

https://sdlc6d.sun.com/ECom/EComActionServlet;jsessionid=48CF8834C4B52334C76970B6401FA62F下载j2sdk-1_4_2_12-windows-i586-p.exe

 

weblogic:8.1

http://commerce.bea.com/showallversions.jsp?family=WLS,选择windows奔腾

WebLogic Platform Net Installer(what's this?)

OS Platform

WebLogic Server/Express 8.1 with SP6

 全安装,默认。

  Configuration wizard -> create new domain -> basic weblogic domain -> mydomain

 

5.     Go to <LoadRunner>\classes and rename the file jmxri.jar to something else.

6.     Go to <LoadRunner>\dat\monitors and edit the weblogicmon.ini:

a.            Set the JVM to point to JDK1.4

b.           Comment out the JavaVersion entry if there is a complain about JDK versions

c.            DO NOT comment out the reference to jmxri.jar in this file It must remain as shown below:

JVM_CLASSES1=jmxri.jar

7.     Copy the weblogic.jar from the server to the <LoadRunner>\classes directory.

 

 

 

 

 

 


TAG:

引用 删除 renwofei423   /   2008-12-05 16:16:06
大牛,我现在用loadrunner9.1监视weblgoic10,发现了类似的错误,您有试过吗?我在51testing发了帖子也没有人解决
 

评分:0

我来说两句

Open Toolbar