10分钟学会JProfiler安装和使用.pdf
文本预览下载声明
JProfiler 在 Linux 上的安装和使用
一 前言
前段时间网厅 web 效劳老是 OutOfMemoryError,查找了一些网站,找到一个应用监控
工具 JProfiler ,可以在本地机器上监控远程效劳器上的应用。搭建环境的时候遇到了一些问
题,也查找了网上的一些资源,但都不太全面,现把自己的安装和使用过程记录下来,方便
后来人使用。
二 环境介绍
效劳器端
操作系统:linux RedHat AS 5
应用效劳器:WebLogic 9.2
java 虚拟机版本:7
jprofiler 版本:jprofiler_linux_5_1_4.sh 〔在csdn 可以下载到〕
客户端
操作系统:Windows Xp SP2
Jprofiler for windows 〔安装包:jprofiler_windows_5_1_4.exe 在 csdn 可以
下载到〕
三 客户端 JProfiler 安装及配置
1. 翻开本地 jprofiler
1-1
图 1-1 使用向导,我们可以选择 Cancel
2.
1-2
选择 session-Integration wizards-New Remote Integration
3.
1-3
1)The profiled application is located 选择 On a remote computer
2)Platform of the remote computer 选择 Linux X86/AMD64
3)Next
4.
1-4
Remote address 中写入所要监控的效劳器 IP 地址
5
1-5
Installation directory 中写入jprofiler 在效劳器中的路径,比方/opt/jprofiler5 〔此路径为
远程效劳器上 jprofiler 的安装路径〕
6
1)
1-6-1
2)JVM Vendor 选择 Sun
1-6-2
Version 选择,如果效劳器操作系统是 64 位,需要勾选 64bit jvm
3)Next
7
1-7
JProfiler port :写入 8849 默认
8
1-8
选择 Wait for a connection from the JProfiler GUI
9
1-9
红框中内容设置环境变量时使用。
选择 next
选No,I will start the session later因为我们还没有配置效劳器端。
选择finish
四 效劳器端 JProfiler 安装及配置
效劳器端安装:
1. 把 jprofiler_linux_5_1_4.sh 上传到效劳器/opt/路径下
2. 如果安装包为.rpm,先执行 apt-get install rpm;
3. 安装 jprofiler :rpm –ivh jprofiler_linux_4_3_2.rpm
4. 如果安装包为.
显示全部