1

我有一个使用离线分析创建的 JProfiler 快照文件 (.jps)。

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

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

任何人都可以详细说明它的含义以及成功导出 html 视图需要做什么。

注意:我已经在 tomcat 中启动了我的应用程序并添加agentpathcatalina_optsset 环境中

export CATALINA_OPTS="-agentpath:/opt/jprofiler9/bin/linux-x64/libjprofilerti.so=offline,id=80,nowait,config=/opt/jprofiler9/api/samples/common/config.xml"
4

1 回答 1

0

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

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

于 2019-01-21T13:17:15.723 回答