1
votes

I am trying out Elastic APM.

I used automatic setup with apm-agent-attach-standalone.jar. (I also used -javaagent flag (manual setup), and it worked fine)

C:\Users\dsm\Documents>java -jar apm-agent-attach-1.9.0-standalone.jar --pid 16832 --args 'service_name=test;server_urls=http://localhost:8200'
--args is deprecated in favor of --config
2019-09-04 15:05:01.353  INFO Attaching the Elastic APM agent to 16832
2019-09-04 15:05:04.619  INFO Done

Data was successfully recieved from the agents, and I used APM UI to monitor.

How do I detach this agent from the process?

What do I do if I want to stop this agent?

1

1 Answers

1
votes

You can start your application with argument active=false.

C:\Users\dsm\Documents>java -jar apm-agent-attach-1.9.0-standalone.jar --pid 16832 --args 'service_name=test;server_urls=http://localhost:8200;active=false'