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

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 same folder, and that you set the -javaagent property of your JVM to point to the location of the newrelic.jar file.

A very important thing to know: your startup script (the one which contains the command that starts your application server) must include Java’s built-in argument called “-javaagent”, and the value of that argument must be the location of wherever you unzipped the newrelic agent. For example, “-javaagent:/usr/local/tomcat/newrelic/newrelic.jar”.

Let’s say that you were testing out deploying a single Java web application, using Docker and New Relic. These 2 files might be all you need:

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

Newrelic APM- Install and Configure using Tomcat & Java Agent Tutorials

Step 1 – Install JDK Step 2 – Install & Start Tomcat Step 3 – Install your apps Lets use Tomcat’s default example app only. You may…

Read More

How to Monitor & Integration of Apache Tomcat & JMX using NewRelic Infra Agent?

To set up New Relic JMX monitoring, follow these steps: Step 1: Install the New Relic infrastructure agent If you haven’t already, install the New Relic infrastructure…

Read More

How to enable Java & Tomcat monitoring using JMX in Zabbix?

What is JMX? Java Management Extensions (JMX) is a Java technology that supplies tools for managing and monitoring applications, system objects, devices and service-oriented networks. Those resources…

Read More

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…

Read More

Apache Tomcat Good url Collection

rajeshkumar created the topic: Apache Tomcat Good url Collection Tomcat : How to increase the Java heap size www.serveridol.com/2011/07/28/tomcat-increase-java-heap-size/ Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn Rajesh…

Read More

Docker Tutorials: Docker Image – Example and Sample Programs of Dockerfile

This page collects sample Dockerfiles that build an Ubuntu-based Apache image and show how CMD, ENTRYPOINT, EXPOSE, ARG, ENV, COPY and USER behave. Below the examples you…

Read More