jprofiler 远程监控aix的jvm

Jprofiler在aix上安装和使用

      最近项目中出现一个内存溢出现象,经过代码走查,对一部分代码进行修改,问题仍然存在,定位了好长时间仍然没有定位出来,于是从网上查询资料,看到了jprofiler能实时监控jvm使用情况,于是将jprofiler在项目中安装和配置过程记录下来分享给大家,希望对有需要的同行们有帮助。

一 、环境介绍

       服务端

操作系统:AIX 5.3  

JDK版本:IBM JDK 1.4.2

   应用服务器:Weblogic 8.1

   Jprofiler版本:jprofiler_unix_5_2_4.sh

       客户端:

操作系统 windows XP

Jprofiler版本:jprofiler_windows_5_2_4

二、客户端Jprofiler安装以及配置

      破解

1、解压jprofiler_windows_5_2_4.zip

2、将keygen/jprofiler/windowss下的jprofiler.dll和jprofilerti.dll文件覆盖/ jprofiler_windows_5_2_4/jprofiler5/bin/windows下的对应两个文件

3、在运行cmd到通过命令行窗口执行java Keygen获取key值(例如:d:/keygen/Keygen.calss)

      安装

1、解压完成后,在/ jprofiler_windows_5_2_4/jprofiler5/bin/找到jprofiler.exe双击打开

2、根据提示选择相应信息

3、输入key值,然后一直next直到完成

       配置

1、 选择cancel

2、 选择:Session->Integration Wizards->New Server Integration

3、 选择应用服务器Weblogic 8.1 Server 点击next

4、 选择远程服务器操作系统类型AIX 点击next

5、 选择第二项Startup immediately,connect late…… 点击next

6、 输入远程服务器IP地址 点击next

7、 输入远程服务器jprofiler的安装目录 点击next

8、 输入远程服务器上的配置文件config.xml的目录

9、 选择从服务器中复制到本地的应用服务器启动文件,例如:startWeblogic.sh

10、      选择JDK类型以及版本,如果是64位,请选择64位

11、      选择默认端口8849(注意:请先开通8849端口保证通信正常)

12、      完成安装后,选择暂时不启动,稍后启动方式,点击finish

三、服务器端jprofiler安装和配置

       安装

1、  将客户端下载的jprofiler_unix_5_2_4.sh上传到服务器

2、  在jprofiler_unix_5_2_4.sh的当前目录下执行如下命令

[bea@sddwh1 /bea/opt]$./jprofiler_unix_5_2_4.sh –c

3、  执行上面命令后,提示如下

    Starting Installer ...

This will install JProfiler on your computer.

OK [o, Enter], Cancel [c]

4、  按照提示信息安装即可,

5、  修改环境变量, 在.profile文件中添加如下:

export LD_LIBRARY_PATH=/bea/jprofiler5/bin/aix-ppc  ---对应的操作系统路径

export INSTALL4J_JAVA_HOME=/jdk1.4.2/jre    --实际用到的jdk目录

6、在客户端复制一份config.xml文件,并修改里面的key为<licenseKey name="any"company="git" key="L-Larry_Lau@163.com#83851-1vyctfjv8d6ua#255"/>

7、检查生成的startWeblogic_jprofiler.sh文件中配置是否正确

8、通过上两步修改和检查正确后,将修改后的config.xml上传到服务器上对应的配置文件目录下面,将startWeblogic_jprofiler.sh复制到对应weblogic启动文件夹下面与startWeblogic.sh在同一目录下

四、启动监控和监控

1、在服务器端启动(执行startWeblogic_jprofiler.sh)出现如下内容

JProfiler> Protocol version 27

JProfiler> Using JVMPI

JProfiler> 32-bit library

JProfiler> Don't wait for frontend to connect.

JProfiler> Using config file /bea/jprofiler5/config/config.xml(id: 108)

JProfiler> Listening on port: 8849.

JProfiler> Native library initialized

JProfiler> If output stops here, please remove -Xdebug from thecommand line

Warning: JIT compiler "none" not found. Will useinterpreter.

JProfiler> Using dynamic instrumentation

JProfiler> Time measurement: elapsed time

JProfiler> CPU profiling enabled

JProfiler> Starting weblogic/Server ...

 

JProfiler> Reconnection. Using last settings.

表示jprofiler服务端启动成功

   2、在客户端执行session->start center下启动要监控的远程服务器对应的session

 



id pro year y x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 IV 1 安徽省 2013 .222415 8.52448 .169343 11100 .723905 20.227 23114.2 32000.9 .091535 .07047 21.3049 27.53 .024927 135.514 .002607 1.05919 4.7 .090683 64 6740.93 3513.09 710745 359076 .064037 910.8 .222415 2 安徽省 2014 .247061 8.72823 .159316 13151 .836936 21.9058 16795.5 34424.6 .104861 .101128 25.1807 27.53 .022462 119.444 .002365 1.24143 8.9 .092686 64 7327.55 3548.44 817239 370493 .072474 1049.4 .2470611 3 安徽省 2015 .251672 8.74088 .163529 15926 1.60867 22.9986 18362.6 35996.6 .117283 .111076 32.9767 27.53 .023827 112.678 .002182 1.49818 12.3 .148659 65 7845.14 4168.81 972903 438577 .085924 1236.8 .2516716 4 安徽省 2016 .3474 8.51778 .164925 19258 2.53018 23.7431 19998.1 39561 .093705 .118598 32.9798 27.53 .024197 27.7275 .001114 1.92732 12.7 .173504 66.9 8339.47 4242.6 1.4e+06 562609 .096022 1446.1 .3474004 5 安徽省 2017 .280596 8.55774 .163594 20598.2 1.98945 24.31 21863.3 43401.4 .095217 .122123 37.3122 27.53 .032019 23.9773 .000723 1.76746 11.5 .211615 67 9758.1 4274.61 1.8e+06 656603 .10889 1683.2 .2805956 6 安徽省 2018 .304529 8.8107 .16939 22049.6 2.36116 24.3634 23983.6 47711.7 .122682 .16211 39.3631 28.65 .031849 23.0706 .000542 1.92208 11.8138 .262875 62 9651.92 4324.21 2.2e+06 661018 .134857 2142.53 .3045288 7 安徽省 2019 .313442 8.78048 .165337 28176.5 2.34983 24.7633 26415.1 58495.6 .121993 .150068 35.0602 28.65 .042222 18.4242 .000407 1.1301 14.4 .292916 60.1 9074.96 4843.93 2.3e+06 710941 .156181 2340.6 .3134423 8 安徽省 2020 .215352 8.94572 .168843 32266 3.51089 27.298 28103.2 63426.5 .143144 .162382 45.7298 28.65 .025534 61.3233 .000281 1.04478 13.3 .342832 57.4 9138.03 5287.11 2.4e+06 711172 .190004 2498.72 .2153516 9 安徽省 2021 .31718 9.17268 .173318 41634 3.86521 27.3542 30904.3 70321 .172452 .173697 54.4764 28.65 .026275 55.8878 .000199 .854086 12.5 .382107 55.1 9694.88 5409.73 2.5e+06 778133 .144013 2779.51 .3171795 10 安徽省 2022 .316344 9.24119 .169559 41029.5 4.27
03-30
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值