Home > Blockchain >  Agent library failed to init: instrument (New Relic)
Agent library failed to init: instrument (New Relic)

Time:12-27

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

Error opening zip file or JAR manifest missing :

/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. enter image description here

I added the line:

javaagent:/opt/newrelic/newrelic.jar -Dnewrelic.config.jfr.enabled=false

in VM options as shown in the image enter image description here

CodePudding user response:

You're missing the - in -javaagent:

-javaagent:/opt/newrelic/newrelic.jar -Dnewrelic.config.jfr.enabled=false

CodePudding user response:

I solved it when I passed the absolute address to the javaagent

  • Related