我正在尝试在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的命令,仍然没有快乐-同样的错误。
发布于 2015-12-02 08:37:46
对于那些遇到同样问题的人,请使用:
摘要
历史注释:这是运行Tomcat8实例的Confluence。
Luca尝试使用New Relic Agent自安装程序进行安装。在位于Confluence主文件夹(在本例中为/srv/atlassian-confluence/bin/)的/newrelic/文件夹中运行java -jar newrelic.jar install,成功地将-javaagent交换机添加到catalina.sh,但随后输出到控制台
*正在安装版本3.22.0...
:
*安装不完整
此时,Luca将newrelic.jar和newrelic.yml从/srv/atlassian-confluence/bin/newrelic移动到上面的文件夹,即/srv/atlassian-confluence/bin/。在运行startup-confluence.sh启动脚本后,新的relic代理尝试以合流方式启动,但(1)无法创建日志文件,(2)导致合流到throw an exception。
为了补救这种情况,卢卡和我需要:
(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环境变量。
https://stackoverflow.com/questions/33748264
复制相似问题