gpt4 book ai didi

java - Confluence 的新 Relic Java 安装

转载 作者:行者123 更新时间:2023-11-30 07:47:13 39 4
gpt4 key购买 nike

我正在尝试在 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 命令,仍然没有任何乐趣 - 同样的错误。

最佳答案

对于遇到同样问题的人:

总结

历史注释:这是运行 Tomcat 8 实例的 Confluence。

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

***** 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 option or from /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/atlassian-confluence/newrelic/newrelic.yml

***** Install incomplete

此时,Luca 将 newrelic.jarnewrelic.yml/srv/atlassian-confluence/bin/newrelic 移至上面的文件夹,即 /srv/atlassian-confluence/bin/。新的 relic 代理在运行 startup-confluence.sh 启动脚本后尝试通过 confluence 启动,但 (1) 无法创建日志文件,并且 (2) 导致 confluence 到 throw an exception

为了纠正这种情况,卢卡和我需要:

(1)去掉catalina.sh中new relic添加的多行开关

(2) 运行 java agent manual installation instructions但我们没有将 export JAVA_OPTS="$JAVA_OPTS -javaagent:/full/path/to/newrelic.jar" 放入 catalina.sh 中,而是将其放入 confluence 启动脚本中startup-confluence.sh

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

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

关于java - Confluence 的新 Relic Java 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33748264/

39 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com