New Relic for Java

https://docs.newrelic.com/docs/agents/java-agent/getting-started/new-relic-java


New Relic for Java

For an overview of New Relic's Java agent (compatibility, requirements, installation, configuration), start here.

Compatibility and requirements

Show All    App/Web servers Frameworks JDBC drivers JVM Hosting services Other instrumented features Security requirements

Installation

allowtransparency="true" class="wistia_embed" frameborder="0" height="309" name="wistia_embed" scrolling="no" src="https://fast.wistia.net/embed/iframe/ld2xazuco9?endVideoBehavior=reset&playButton=false&playerColor=4cb0bd&version=v1&videoHeight=309&videoWidth=550&volumeControl=true" width="550" style="box-sizing: border-box; border: 1px solid rgb(204, 204, 204); border-radius: 4px; max-width: 700px; margin-bottom: 0px; padding: 5px;">
For Java agent installation tips, watch this New Relic video (approximately 1 minute).

To use the Java agent, sign up for a New Relic account, and then follow these installation instructions for your specific application server:

Notes:

  • Even if you do not see your app server here, New Relic's Java agent should work on any application server by passing the -javaagent:/full/path/to/newrelic.jarswitch to the JVM.
  • As part of the installation, change the default application name to a meaningful name.
  • Recommendation: Change the default newrelic.yml file permissions to be read/write only for the owner of the app server process.
  • To view your app's performance in the New Relic UI: From the New Relic menu bar, select APM > Applications > (selected app) > Monitoring > Overview.

Startup configuration

The agent reads the startup configuration from the newrelic.yml file, which must be in the same directory as newrelic.jar. You can also override settings using Java system properties.

The agent needs the license_key and app_name settings at startup (bootstrap). You cancustomize the location of the log file and other settings in your newrelic.yml file.

If your app server runs multiple applications in the same JVM, see Java agent configuration for multiple applications.

Editing the configuration

You can configure application reporting from the New Relic web interface using server-side configuration. Changes will be applied to all agents reporting for your application when the JVM restarts. However, if you use server-side config, you must still maintain required settings (license_key and app_name) in the local config file.

For more help

Additional documentation resources include:

Join the discussion about Java monitoring in the New Relic Community Forum  ! The Community Forum is a public platform to discuss and troubleshoot your New Relic toolset.

If you need additional help, get support at support.newrelic.com  .


How to create a new relic account:

https://newrelic.com/signup

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值