当前位置:首页 > jprofiler9.2入门教程
JProfiler监控方式介绍
使用 JProfiler 监视 JVM 时,监控方式有以下几种:
1.等待模式
wait for a connection from the Jprofiler GUI,此模式为,在启动容器(Weblogic/Tomcat)时,需要等 Jprofiler 连接后才能启动;
JVM TI 是采用事件通知方式告知 JProfiler 相关的 Jvm 的状态变化,等待模式可以不漏掉通知。
2.非等待模式
Start Immeditely,此模式下, 容器(Weblogic/Tomcat)独立启动,Jprofiler 随时可以连接;
3.离线模式
Profile offline, Jprofiler GUI cannot connect 此模式为离线模式,生成相关记录文件事后分析;
创建监视本地Tomcat的工程(等待模式)
1)主菜单:session ->start center 2)选择“New session”选项卡 3)选择“New Server Integration”按钮 4)选择被监控的应用服务器 同第二小节第3点 5)选择on this computer
6)选择JVM配置同 第二小节第5点 7)选择等待模式监控
8)生成带Jprofiler监控信息的启动脚本,同第二小节的第9点,注意:这次需选择本机Tomcat/bin 目录下的启动脚本startup.bat,程序会在bin目录下生成startup_jprofile.bat
9)选择端口号
共分享92篇相关文档