There are three main ways to disable the Java agent:
Method 1 – Set agent_enabled to false in newrelic.yml(linux), then restart the JVM.
Method 2 – Use the JVM command line flag:
-Dnewrelic.config.agent_enabled=false
Then restart the JVM.
Method 3 – Remove the newrelic.jar or newrelic.yml file from specified location, then restart the JVM.
Note – After you disable the agent, it may take several minutes for data to stop showing up.
Method 4 – To permanently disable APM, uninstall the agent.
To remove the Java agent: Delete the newrelic folder from your app server’s root directory. Remove the JVM argument you used to include the agent in your startup script. After you complete these steps, restart your app.
Session-1 – NewRelic Advance Tutorials – Introduction & APM
Session-2 – NewRelic Advance Tutorials – Infrastructure
Session-3 – NewRelic Advance Tutorials – Integration
Session-4 – NewRelic Advance Tutorials – APM
Session-5 – NewRelic Advance Tutorials – APM
Session-6 – NewRelic Advance Tutorials – APM
Session-7 – NewRelic Advance Tutorials – APM
Session-8 – NewRelic Advance Tutorials – Log
Session-9 – NewRelic Advance Tutorials – Alert
Session-10 – NewRelic Advance Tutorials – Synthetic & UX
Session-11 – NewRelic Advance Tutorials – Dashboard & NRQL
Latest posts by Rajesh Kumar (see all)
- Apache Lucene Query Example - April 8, 2024
- Google Cloud: Step by Step Tutorials for setting up Multi-cluster Ingress (MCI) - April 7, 2024
- What is Multi-cluster Ingress (MCI) - April 7, 2024