Error starting app server (Java)

Problem

There is an error starting the app server.

Solution

The path to the agent jar file must be fully qualified in the -javaagent JVM switch. If the path is not correctly specified, this error will be thrown on application server startup, and the JVM will exit. Here is an example:

Error opening zip file: newrelic.jar 
Error occurred during initialization of VM 
agent library failed to init: instrument

To correct this problem, specify the full path to the newrelic.jar file in the -javaagent switch. For example, if the newrelic.jar file is in a directory named newrelic inside the Tomcat home directory /home/tomcat, specify the switch like this:

-javaagent:/home/tomcat/newrelic/newrelic.jar

For more help

Join the discussion about Java monitoring in the New Relic Online Technical Community! The Technical Community is a public platform to discuss and troubleshoot your New Relic toolset.

If you need additional help, get support at support.newrelic.com.