To use Java or any other agent, as well as the rest of our observability platform, join the New Relic family! Sign up to create your free account in only a few seconds. Then ingest up to 100GB of data for free each month. Forever.
Install the New Relic Java agent, using either of these options:
newrelic.ymlin the same folder as
newrelic.jar, unless you specify otherwise in the JVM arg
-javaagent:/path/to/newrelic.jarto the JVM running your application server.
Optional: If using the New Relic Java agent API, make the API jar available at compile time by adding it to your application class path.
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.