使用jpexport时出错(导出jprofiler .jps文件)

问题描述 投票:1回答:1

我有一个JProfiler快照文件(.jps),它是使用脱机配置文件创建的。

我正在尝试使用JPexport脚本导出它时出现以下错误:

/ opt / jprofiler9 / bin $ jpexport~ / test.jps HotSpots~ / HotSpots.html正在加载/home/pavan/test.jps JProfiler尚未初始化。请先运行JProfiler可执行文件

任何人都可以详细说明它是什么意思以及在html中成功导出视图需要做些什么。

注意:我已经在tomcat中启动了我的应用程序并在设置环境中将agentpath添加到catalina_opts

export CATALINA_OPTS="-agentpath:/opt/jprofiler9/bin/linux-x64/libjprofilerti.so=offline,id=80,nowait,config=/opt/jprofiler9/api/samples/common/config.xml"
java performance profiling jprofiler apm
1个回答
0
投票

jpexport要求输入JProfiler许可证。当您启动JProfiler GUI时,系统会提示您输入许可证密钥,然后jpexport将起作用。

在无头机器上,将$HOME/.jprofiler9/config.xml从带有GUI的机器上复制到许可密钥到同一路径。

© www.soinside.com 2019 - 2024. All rights reserved.