我有一个使用离线分析创建的 JProfiler 快照文件 (.jps)。
当我尝试使用 JPexport 脚本导出它时,出现以下错误:
/opt/jprofiler9/bin$ jpexport ~/test.jps HotSpots ~/HotSpots.html 正在加载 /home/pavan/test.jps JProfiler 尚未初始化。请先运行 JProfiler 可执行文件
任何人都可以详细说明它的含义以及成功导出 html 视图需要做什么。
注意:我已经在 tomcat 中启动了我的应用程序并添加agentpath
到catalina_opts
set 环境中
export CATALINA_OPTS="-agentpath:/opt/jprofiler9/bin/linux-x64/libjprofilerti.so=offline,id=80,nowait,config=/opt/jprofiler9/api/samples/common/config.xml"