1: 修改/etc/profile
增加以下内容:
JPROFILER_HOME=/opt/jprofiler9/bin/linux-x64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JPROFILER_HOME
2:tomcat /bin/catalina.sh
增加以下内容:
CATALINA_OPTS="$CATALINA_OPTS -Xms128m -Xmx128m $JPDA_OPTS -agentlib:jprofilerti=port=8849 -Xbootclasspath/a:/opt/jprofiler9/bin/agent.jar"
3:安装jprofiler_linux_9_0_1.sh(直接执行即可)
4:启动tomcat
5:安装jprofiler_windows_9_0_1.exe
6:即可建立远程监控(cpu 内存等)
时间: 2024-10-14 13:30:39