性能测试监控 -- jprofile 监控 weblogic

性能测试时,想知道weblogic的jdk运行情况如何,可以用 jprofile 监控:

jprofile介绍 ...... 这里不用解释(请狗狗...)

给图看看:)


服务器环境: CentOS 5.5final , WebLogic : 10.3 (weblogic自带的jdk是1.6.04)
客户端环境: Windows XP SP3 , JDK1.6.05

jprofile 配置
1.windows上安装 jprofile (并新建立一个session 请见http://blog.csdn.net/kingspider/archive/2008/11/10/3266597.aspx)
2.linux 上安装 jprofile 注:对于没有安装X Server的机器,需要执行./jprofiler_linux_5_1_4.sh -q,否则会提示,
出错此信息:java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.JavaBridge
解决办法:
将 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/accessibility.properties 文件中的:
assistive_technologies=org.GNOME.Accessibility.JavaBridge
注释调即可!

3.配置 linux 的 jprofile
========= 配置/etc/profile =============
vim /etc/profile (配置/etc/profile) ; 增加如下行:
export LD_LIBRARY_PATH=/opt/jprofiler5/bin/linux-x86
source /etc/profile

========= 配置 setDomainEnv(要监控的domain/bin/setDomainEnv) =============
vim setDomainEnv.sh 增加如下信息:
# ===================== add by liulin 2010-08-22 for  jprofile =================
JAVA_OPTIONS="${JAVA_OPTIONS} ${JAVA_PROPERTIES} -Dwlw.iterativeDev=${iterativeDevFlag} -Dwlw.testConsole=${testConsoleFlag} -Dwlw.logErrorsToConsole=${logErrorsToConsoleFlag}"
JAVA_OPTIONS="${JAVA_OPTIONS} -agentlib:jprofilerti=port=8849,nowait,id=102,config=/opt/jprofiler5/config.xml -Xbootclasspath/a:/opt/jprofiler5/bin/agent.jar"
export JAVA_OPTIONS


4.启动 weblogic
报错:Could not find agent library on the library path or in the local directory: jprofilerti
处理方法地址:http://www.testwo.com/space-32-do-blog-id-36.html
处理 把/opt/jprofiler5/bin/linux-x86/lib* 拷贝到  /usr/lib
cp lib* /usr/lib


如果出现Invalid license key.
处理:
把C:/Documents and Settings/Administrator/.jprofiler5/config.xml拷贝到服务器上/opt/jprofiler5/config.xml
更改config.xml中的key内容为:
<licenseKey name="any" company="git" key="[email protected]#83851-1vyctfjv8d6ua#255" />

===========linux 下 profile 5.1.4 注册码 ===============
larry lau - Sept. 8, 2008
Name: any
Company: any
License Key:
[email protected]#16320-dvzxpt17ogmau#013
[email protected]#83851-1vyctfjv8d6ua#255
[email protected]#83192-56yozpwn6v3n#174

 

你可能感兴趣的:(性能测试监控 -- jprofile 监控 weblogic)