windows环境jprofiler配置监控tomcat

时间:2021-12-06 04:54:31

1.点击jprofiler/bin/jprofiler.exe文件安装

2.安装后将C:\Users\Administrator\.jprofiler8\config.xml文件复制到指定文件下,如:

F:\resource\jprofiler8\config.xml

3.在tomcat/bin/startup.exe文件中添加如下内容:

set JAVA_OPTS=%JAVA_OPTS% -agentlib:jprofilerti=port=8849,nowait,id=103,config=F:\resource\jprofiler8\config.xml
-Xbootclasspath/a:F:\resource\jprofiler8\bin\agent.jar
-Xbootclasspath/a:F:\resource\jprofiler8\bin\agent.jar

4.配置环境变量path:

F:\resource\jprofiler8\bin\windows

5.先启动tomcat再用jprofiler连接tomcat