下载后可任意编辑 JProfiler 在 Linux 上的安装和使用一 前言前段时间网厅 web 服务老是 OutOfMemoryError,查找了一些网站,找到一个应用监控工具 JProfiler,可以在本地机器上监控远程服务器上的应用。搭建环境的时候遇到了一些问题,也查找了网上的一些资源,但都不太全面,现把自己的安装和使用过程记录下来,方便后来人使用。二 环境介绍服务器端操作系统:linux RedHat AS 5应用服务器:WebLogic 9.2java 虚拟机版本:1.5.0.07jprofiler 版本:jprofiler_linux_5_1_4.sh(在 csdn 可以下载到)客户端 操作系统:Windows Xp SP2Jprofiler5.1.4 for windows(安装包:jprofiler_windows_5_1_4.exe 在csdn 可以下载到)下载后可任意编辑三 客户端 JProfiler 安装及配置1.打开本地 jprofiler1-1图 1-1 使用向导,我们可以选择 Cancel2.下载后可任意编辑1-2选择 session->Integration wizards->New Remote Integration3. 1-3下载后可任意编辑1)The profiled application is located 选择 On a remote computer2)Platform of the remote computer 选择 Linux X86/AMD643)Next4.1-4Remote address 中写入所要监控的服务器 IP 地址5下载后可任意编辑1-5Installation directory 中写入 jprofiler 在服务器中的路径,比如/opt/jprofiler5(此路径为远程服务器上 jprofiler 的安装路径)61)下载后可任意编辑1-6-12)JVM Vendor 选择 Sun1-6-2Version 选择 1.5.0,假如服务器操作系统是 64 位,需要勾选 64bit jvm3)Next7下载后可任意编辑1-7JProfiler port :写入 8849 默认8下载后可任意编辑1-8选择 Wait for a connection from the JProfiler GUI9下载后可任意编辑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.rpm4.假如安装包为.sh,直接执行5.修改 .bash_profile 文件,新增内容类似如下(修改为自己服务器上的实际路径):export LD_LIBRARY_PATH=/opt/jprofiler5/bin/linux-x86export INSTALL4J_JAVA_HOME=/weblogic/bea/jdk15...