I am getting an error trying to run the following command in linux to run the APM application agent:
sudo java -javaagent:elastic-apm-agent-1.12.0.jar
The error is as follows:
Error opening zip file or JAR manifest missing : elastic-apm-agent-1.12.0.jar
Error occurred during initialization of VM
agent library failed to init: instrument
I have given all permissiions to the folder/file
-rwxrwxrwx. 1 root root 134 Apr 1 17:28 elastic-apm-agent-1.12.0.jar
Is this the entire command line? elastic-apm-agent.jar is not an executable Java app, it is a jar added to the command line when running your Java app. apm-agent-attach-standalone.jar is an executable Java that may be used to remotely attach to another JVM.
See setup instructions for details.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.