Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to disable newrelic agent completly or disable for specific app in JAVA?

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.

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.