将测试进行到底!

JProfiler 远程监控 Websphere

上一篇 / 下一篇  2012-10-30 18:03:02 / 个人分类:JAVA

JProfiler 远程监控 Websphere 使用说明
6.1客户端连接配置
1). 运行 JProfiler 。第一次打开会有向导,next。 
2). 选择 Session->Integration Wizard-> New Remote Integratation
3). 选择 On a remote computer;Platform. of remote computer 选择 Linux x86/AMD 64;Next 
4). 输入服务器 IP ;Next 
5). 输入服务器上的 jprofiler 的安装路径,如 /opt/jprofiler4;next 
6). 选择服务器的 JDK 环境,这里是:Sun,1.5.0,hotspot;next 
7). 输入端口:这里是默认值 8849;next 
8). 选择启动模式:这里选第2种 don’t wait ,startup immediately; next
9). 输入服务器上的 jprofiler 的配置文件路径 如 /opt/jprofiler4 ;next
10).这里会列出需要在服务器端做的配置:
如:
 (3) In the "Instance Properties" section, click "Server Properties", locate the "Command Line Options" section and add the following parameters to the "Java Options" field:
-agentlib:jprofilerti=port=8849,nowait,id=104,config=/opt/jprofiler4/config.xml  -Xbootclasspath/a:/opt/jprofiler4/bin/agent.jar 
(4) In the "Environment Variables" section, choose "Add Environment Variable" and add or update the environment variable LD_LIBRARY_PATH with the following value
opt/jprofiler4/bin/linux-x86
 
11).上传本地机器C:\Documents and Settings\XXX\.jprofiler4\config.xml 文件,到先前step 9, 设置的jprofiler配置文件路径中。
 
6.2服务器端连接配置
1) 修改../IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startWebsphere.sh中的配置信息。
增加调用jprofiler库路径环境变量
 
LD_LIBRARY_PATH="/opt/jprofiler4/bin/linux-x86:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
 
Note: 新环境变量要增加在最开头部分。
 
2) 增加启动jprofiler的加载配置在对应node下的server中的server.xml
增加配置文件路径位置是
../WebSphere/AppServer/profiles/AppSrv01/config/cells/../nodes/<node-name>/servers/<server-name>下的server.xml
Eg:< / /WebSphere/AppServer/profiles/AppSrv01/config/cells/svr7-181Node01Cell/nodes/svr7-181Node01/servers/server1/>
 
<jvmEntries xmi:id="JavaVirtualMachine_1225267242637" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" initialHeapSize="512" maximumHeapSize="1024" runHProf="false" debugMode="false" debugArgs="-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777" disableJIT="false" genericJvmArguments="-agentlib:jprofilerti=port=8849,nowait,id=104,config=/opt/jprofiler4/config.xml  -Xbootclasspath/a:/opt/jprofiler4/bin/agent.jar">
 
Notes :最好是提前备份下,而且在服务器端修改该文件,下载本地修改后使用CUTEFTP上传可能会出现乱码的错误要使用2进制模式传输。 

TAG:

 

评分:0

我来说两句

Open Toolbar