name mode size
CHANGELOG 100644 22.46kB
LICENSE 100644 3.43kB
README.txt 100644 3.97kB
newrelic-api.jar 100644 3.74kB
newrelic-extension.xsd 100644 6.16kB
newrelic.jar 100644 5.67MB
New Relic Java Agent -------------------- New Relic is an application performance monitoring service that lets you see and understand application performance metrics in real time so you can fix problems fast. The Java agent collects system and application metrics by injecting byte-code into a select set of methods. The metrics are reported to the New Relic service once a minute. The agent also reports uncaught exceptions and slow transactions. Getting Started --------------- Two files are required to start the New Relic java agent - newrelic.jar and newrelic.yml. newrelic.jar contains the agent class files, and the newrelic.yml file contains configuration information for the New Relic agent, including your license key, application name, ssl settings, etc. You can download both the jar and the tailored yml file by logging into, selecting the "Account" page, and then downloading the files from the right side of the page. If you don't already have a New Relic account creating one is easy: The agent requires Java 1.5+. Installation ------------ Complete installation instructions and troubleshooting tips are available at: Configuration options are available at: The NewRelic Java agent bootstraps using the -javaagent command line option. Create a directory in your application server home directory named newrelic and copy the newrelic.jar and newrelic.yml files into it. On server startup the agent will search for the newrelic.yml file in the directory containing the newrelic.jar file. The agent log will be written relative to the newrelic.jar file in a directory named 'logs'. newrelic/ newrelic.jar newrelic.yml logs/ ... Tomcat ------ The Tomcat startup script ( can be configured to use the New Relic agent using the JAVA_OPTS environment variable: export JAVA_OPTS="$JAVA_OPTS -javaagent:/full/path/to/newrelic.jar" Jetty ----- The Jetty startup script ( can be configured using the JAVA_OPTIONS environment variable: export JAVA_OPTIONS="${JAVA_OPTIONS} -javaagent:/full/path/to/newrelic.jar" JBoss ----- Add this line to the bottom of bin/run.conf: JAVA_OPTS="$JAVA_OPTS -javaagent:/full/path/to/newrelic.jar" Other Application Servers ------------------------- The New Relic Java agent has been tested on Tomcat, Jetty and JBoss, but it should work on any application server. That's all you need to do. Start your application server with the -javaagent parameters and log in to New Relic to see your app's performance information. It takes about 2 minutes for the application data to show up in New Relic ( By default, your data will appear under an application named "My Application". You can change this by updating the app_name setting in newrelic.yml. Support ------- Email, or visit our support site at Licenses -------- The New Relic Java agent uses code from the following open source projects under the following licenses: ASM Apache Commons CLI JSON.simple SnakeYAML Log4J LogBack The remainder of the code is under the New Relic Agent License contained in the LICENSE file.