Jprofiler安装部署启动.pdf
文本预览下载声明
Jprofiler 安装部署启动
对于大部分应用, 我们都是需要跟踪远程服务器上的程序运行情况, 包括 gc, 内存使用,
线程状态等。 所以我们需要在两台机器上安装 Jprofiler, 一个是客户端, 就是开发人员的本机,
进行数据的展示。 另一个就是要远程监控的程序的服务器, 对运行的程序进行性能监控和分
析并将数据传给客户端。 Jprofier 官方下载地址:
/download/jprofiler/files.html
在 linux 上下载 tar.gz 压缩包就可以了
在 windows 机器上运行的工具需要注册激活(在网上搜或者找熟人)
一定要注意,服务端和客户端的运行版本要一致,就算服务端版本是 6.2.3,客户端版本
是 6.0.2 也不行,小版本也要一致,否则报错说版本错误,连不上去,目前咱们使用 6.2.4
版本的在共享 软件 \jprofiler 上可以拿到。
首先安装 jprofiler ,客户端(本机) 、服务器端都得装,服务器端装 linux 版本,解压 tar.gz
包即可
windows 安装 Jprofiler
填写安装序列号
选择本地 eclipse 的安装版本
点击“ Integrate ”按钮选择本地 eclipse 的安装目录
完成后重启 eclipse,可以看到 Jprofiler 的配置
Eclipse 启动 application 程序
方法一、
即可启动 Jprofiler,注意不是戴 ? 那个 Profile As
方法二、
添加虚拟机运行参数为 :
jprofilerti.dll =port= 8849 ,nowait
点击 debug 后
启动 Jprofiler-ctrl+n 新建 session
注意主机是 ;监控端口是 8849
Jprofiler 监控远程 application 部署步骤
配置远程 application 的监控
1、在本地启动 JProfiler ,快捷键 ctrl+o 或者点击菜单 Start Center
,如下图 ,点击“ New Remote Integration ”:
2 、有 2 个选项, On this computer 和 On a remote computer ,这里选择监控远程机器 n a
remote computer ,同时在 latform of the remote computer 选项选择远程机器对应的操作系
统,然后点击 next ,如下图:
3 、选择远程机器的 java (java 安装版本和产商)运行环境,这里选择的是 JVM Vendor :
Sun Version : 1.6.0 Mode :hotspot 如果远程机器是 64 位系统,务必也勾上
64 bit JVM ,然后点击 next
4 、Wait for 。。。。。为了在开发环境中获取监控的信息,它将等待远程计算机上的 Jprofile
GUI 启动,并和本机建立连接,这种方式比较便于修改 jprofiler 的配置信息。
这里选择 startup immediately,connect ……………..
5 、填写远程机器的地址,如下图:
6 、填写远程机器 JProfiler 的安装地址,我这里是 /data/jprofiler/jprofiler6 ,
显示全部