一、JProfiler简介及安装
一、JProfiler简介
JProfiler 是一个非常优秀的的 JVM 性能分析工具,可监视本地和远程的 JVM,适用于各种操作系统。
常用的功能有:
1、 监视堆内存占用情况和创建对象实例的数量,找出内存泄露的根源。
2、 监视占用 CPU 较多的方法
3、 监视线程的阻塞与死锁
4、 监视 GC 的耗时。
二、Windows下安装及配置
1) 从官网下载JProfiler安装包 jprofiler_windows-x64_9_2.exe
- 双击运行
- 选择“Customize installation” Next
- 选择 “I accept the agreement” Next
- 点击browser选择安装目录 Next
- 选择“Window x86 32 and 64 bit” Next
- 一路默认 Next 直到出现“License information”弹框,选择 Yes 选项 Next
- 选择 Enter license key >Single or evaluation license (Name、Company随便写License key 输入以下任一***) Next
[email protected]#23874-hrwpdp1sh1wrn#0620
[email protected]#36573-fdkscp15axjj6#25257
[email protected]#5481-ucjn4a16rvd98#6038
[email protected]com#99016-hli5ay1ylizjj#27215
[email protected]#40775-3wle0g1uin5c1#0674
9、IDE Integration 非必选项,根据需要选择。若监控属于非等待模式,可以忽略不选 Next
10、一路默认Next 直到完成安装
三、初始化配置
- 安装后直接运行或者双击运行 Jprofiler
- 出现配置导向(快捷键 shift+F1)选择“Profile an application server,locally or remotely”
3)、Choose wizard 选择需要监控的应用服务器,本实例选择tomcat7.x
4 Local or remote 选择监测本地运行的Tomcat
5、 配置本地Java环境
6、Startup mode 选择监控方式,本实例选择等待模式
7、
8、配置端口
9、下一步
10、
到此安装全部完成