[英]Agent library failed to init: instrument (New Relic)
I'm trying to configure my springboot application to run locally and send metrics to new relic using intellij IDE. However, when I try to run the application我正在尝试将我的 springboot 应用程序配置为在本地运行并使用 intellij IDE 将指标发送到新遗迹。但是,当我尝试运行该应用程序时
Error opening zip file or JAR manifest missing:打开 zip 文件时出错或缺少 JAR 清单:
/opt/newrelic/newrelic.jar
Error occurred during initialization of VM
agent library failed to init: instrument
I added the.jar file inside the opt folder, at the root of my project.我在我项目的根目录下的 opt 文件夹中添加了 .jar 文件。
I added the line:我添加了以下行:
javaagent:/opt/newrelic/newrelic.jar -Dnewrelic.config.jfr.enabled=false
You're missing the -
in -javaagent
:你错过了
-javaagent
-
-javaagent:/opt/newrelic/newrelic.jar -Dnewrelic.config.jfr.enabled=false
I solved it when I passed the absolute address to the javaagent当我将绝对地址传递给 javaagent 时,我解决了它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.