用于Confluence的新Relic Java安装

问题描述 投票:1回答:1

我正在尝试在Ubuntu 14.04服务器上安装New Relic,以监控同一服务器上的Confluence安装。当我尝试运行安装程序时,我得到:

***** ( ( o))  New Relic Java Agent Installer

***** Installing version 3.22.0 ...

* Could not edit start script because:
Could not locate a Tomcat, Jetty, JBoss, JBoss7 or Glassfish instance in /srv/data-confluence

* Try re-running the install command with the -s <AppServerRootDirectory> option or from <AppServerRootDirectory>/newrelic.
If that doesn't work, locate and edit the start script manually.

* No need to create New Relic configuration file because:
A config file already exists: /srv/data-confluence/newrelic/newrelic.yml

***** Install incomplete

我尝试通过以下信息手动安装它:https://docs.newrelic.com/docs/agents/java-agent/installation/java-agent-manual-installation并运行Tomcat命令,仍然没有喜悦 - 同样的错误。

java newrelic confluence
1个回答
1
投票

对于那些遇到同样问题的人:

包起来

历史记录:这是运行Tomcat 8实例的Confluence。

Luca尝试使用New Relic Agent自安装程序进行安装。在位于Confluence主文件夹(在本例中为java -jar newrelic.jar install)的/newrelic/文件夹中运行/srv/atlassian-confluence/bin/成功将-javaagent开关添加到catalina.sh,但随后输出到控制台

*****安装版本3.22.0 ...

  • 无法编辑启动脚本,因为:无法在/ srv / data-confluence中找到Tomcat,Jetty,JBoss,JBoss7或Glassfish实例
  • 尝试使用-s选项或/ newrelic重新运行install命令。如果这不起作用,请手动找到并编辑启动脚本。
  • 无需创建New Relic配置文件,因为:配置文件已存在:/srv/atlassian-confluence/newrelic/newrelic.yml

*****安装不完整

在这一点上,卢卡将newrelic.jarnewrelic.yml/srv/atlassian-confluence/bin/newrelic移动到上面的文件夹,即/srv/atlassian-confluence/bin/。在运行startup-confluence.sh启动脚本后,新的relic代理尝试启动汇总,但是(1)无法创建日志文件,(2)导致throw an exception汇合。

为了解决这种情况,Luca和我需要:

(1)删除新文物添加到catalina.sh的多线开关

(2)通过java agent manual installation instructions但不是把export JAVA_OPTS="$JAVA_OPTS -javaagent:/full/path/to/newrelic.jar"放入catalina.sh我们把它放入汇合启动脚本startup-confluence.sh

此时,Luca需要运行停止并启动Confluence的脚本以使代理向New Relic APM仪表板报告。

这里的混淆是自动安装程序不起作用,因此需要撤消自动安装程序的更改并在适当的脚本中设置JAVA_OPTS环境变量。

© www.soinside.com 2019 - 2024. All rights reserved.