首页 > 解决方案 > kubernetes 上的 Java APM 代理出错:无法处理 METRICS 类型的事件并出现此错误:/ 为零

问题描述

我正在尝试使用 Springboot 2.3.1.RELEASE 在 Kubernetes 上运行 Java APM 代理

我收到以下错误

[elastic-apm-server-reporter] 错误 co.elastic.apm.agent.report.IntakeV2ReportingEventHandler -无法处理 METRICS 类型的事件并出现此错误:/ 为零

如果我在具有相同 Java 版本的 VM 上运行它,效果很好

我是如何使用的

java -javaagent:elastic-apm-agent-1.17.0.jar -Delastic.apm.service_name=myapp -Delastic.apm.application_packages=com.example -Delastic.apm.server_urls=http://apm-server:8200 -jar my-application.jar

APM 代理语言和版本:Java、elastic-apm-agent-1.17.0.jar、1.16.0.jar、1.15.0.jar

爪哇版

openjdk version "1.8.0_212"
OpenJDK Runtime Environment (IcedTea 3.12.0) (Alpine 8.212.04-r0)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)

更多日志

co.elastic.apm.agent.util.JmxUtils - Found JVM-specific OperatingSystemMXBean interface: com.sun.management.OperatingSystemMXBean
co.elastic.apm.agent.configuration.StartupInfo - Starting Elastic APM 1.17.0 as myapp on Java 1.8.0_121 (Oracle Corporation) Linux 3.10.0-1062.4.3.el7.x86_64

co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to RUNNING state
co.elastic.apm.agent.servlet.ServletVersionInstrumentation - Servlet container info = Apache Tomcat/9.0.36

ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Failed to handle event of type TRANSACTION with this error: / by zero

我尝试使用以前的代理版本 1.16.0 和 1.15.0,但仍然遇到相同的错误。

谁能帮帮我吗。

非常感谢您提前

标签: javaelasticsearchelastic-apm

解决方案


对不起,我的错误,服务器 url 没有正确传递给 docker。


推荐阅读