I am trying to run the APM agent 1.17.0-standalone.jar on an Ubuntu 16.04.7 LTS machine with OpenJDK version 1.8.0_265. When I execute the command
java -jar apm-agent-attach-1.17.0-standalone.jar -i '/opt/application/cl0501/*/*.jar' --continuous --config service_name=apm_mbse --config server_urls=http://server:8211
as the root user I get the following error message:
Exception in thread "main" java.lang.IllegalStateException: Matching JVMs with --include or --exclude requires jps to be installed at co.elastic.apm.attach.RemoteAttacher.main(RemoteAttacher.java:63)
However JPS is installed. When I execute "jps" on the machine, it lists me all the running JVMs. What can the problem be?
Thanks in advance