MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

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.

New Relic Java newrelic.yml config with agent_enabled: true circled to disable the agent

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Deploying NewRelic Agent in Docker Image using Dockerfile for Tomcat and Java

It doesn’t actually matter where you put the New Relic agent. All that matters is that the agent and its support files (including newrelic.yml) are in the…

Read More

jstack Utility Deep Dive: JVM Thread Dumps, Deadlocks, and Mixed Stacks

This guide explains how to use jstack to diagnose JVM hangs and deadlocks, including forced dumps, core-file analysis, and mixed Java/native stack traces. It also clarifies where jcmd fits in modern JDK 8+ troubleshooting guidance.

Read More

Gerrit Performance Tuning Cheat Sheet: Workflow, Bottlenecks, and Practical Commands

A practical Gerrit performance guide for DevOps and platform engineers. Learn a repeatable tuning workflow, where bottlenecks usually appear, and which commands to run first.

Read More

Fix Jenkins java.lang.OutOfMemoryError: PermGen Space (Controller, Agents, and Build Tools)

Jenkins PermGen errors are usually caused by JVM memory limits set in the wrong place. This guide shows where to configure memory flags for controllers, agents, and build tools, plus how to handle Java 8+ where PermGen was replaced.

Read More

EMMA for Java Code Coverage: Setup, Instrumentation Modes, and J2EE Workflow

EMMA is a Java code coverage tool used to see which code paths are actually exercised by tests and runtime usage. This updated guide explains installation choices, instrumentation modes, and the offline J2EE workflow described in the original post.

Read More

ANT_OPTS in Apache Ant: JVM Memory, Proxy Settings, and Startup Troubleshooting

ANT_OPTS passes JVM options to the Java process that runs Ant. This guide explains how ANT_OPTS differs from ANT_ARGS and JAVACMD, with practical examples for memory tuning, proxy setup, and startup error diagnosis.

Read More