Kibana version: 7.9.2
Elasticsearch version: 7.9.2
APM Server version: 7.9.2
APM Agent language and version: Java agent - 1.18 / 1.9.0
Browser version:
Original install method (e.g. download page, yum, deb, from source, etc.) and version: rpm
Fresh install or upgraded from other version? fresh install
Is there anything special in your setup?
Nothing special, just manual attachment of the java agent to the JVM
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant): I run a java application on jboss-fuse-6.0.0.redhat-024, i had set up the apm-server, elasticsearch and kibana servers successfully, attached the apm-agent manually and can see metrics being generated. The agent is able to connect to the apm-server for healthchecks but unable to send /intake/v2/events to the apm-server. The calls never make it to the apm-server, i have enabled debugs, played with the different time out settings both on the apm-server and the agent but it still fails. Interestingly using tcpdump i noticed the agent never really sends any post out the app-server to the apm-server
Steps to reproduce:
- run a jboss fuse 6.0 app
- install the apm-agents/apm-server and instrument the agent manually
- check to see if events make it to the apm-server
Errors in browser console (if relevant): Full APM Debug log is attached
Provide logs and/or server output (if relevant):
key suspect errors from the apm-log
2020-10-05 02:32:42,268 [main] ERROR co.elastic.apm.agent.util.DependencyInjectingServiceLoader - unable to instantiate 'co.elastic.apm.agent.httpclient.HttpClientInstrumentation', unsupported class version error: co/elastic/apm/agent/httpclient/HttpClientInstrumentation has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
full Debug log is below, couldn't find the upload button
2020-10-05 02:32:37,124 [elastic-apm-init-instrumentation-shutdown-hook] INFO co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to STOPPED state
2020-10-05 02:32:37,124 [elastic-apm-init-instrumentation-shutdown-hook] INFO co.elastic.apm.agent.report.ApmServerReporter - dropped events because of full queue: 0
2020-10-05 02:32:42,133 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 11:hugetlb:/
2020-10-05 02:32:42,135 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 10:blkio:/
2020-10-05 02:32:42,135 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 9:cpuset:/
2020-10-05 02:32:42,136 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 8:cpuacct,cpu:/
2020-10-05 02:32:42,136 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 7:pids:/
2020-10-05 02:32:42,136 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 6:devices:/
2020-10-05 02:32:42,137 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 5:memory:/
2020-10-05 02:32:42,137 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 4:perf_event:/
2020-10-05 02:32:42,137 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 3:net_prio,net_cls:/
2020-10-05 02:32:42,138 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 2:freezer:/
2020-10-05 02:32:42,138 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - Could not parse container ID from '/proc/self/cgroup' line: 1:name=systemd:/user.slice/user-1001.slice/session-8510.scope
2020-10-05 02:32:42,138 [main] DEBUG co.elastic.apm.agent.impl.payload.SystemInfo - container ID is null
2020-10-05 02:32:42,182 [main] INFO co.elastic.apm.agent.util.JmxUtils - Found JVM-specific OperatingSystemMXBean interface: com.sun.management.OperatingSystemMXBean
2020-10-05 02:32:42,254 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - Starting Elastic APM 1.18.0 as greybag on Java 1.8.0_262 Runtime version: 1.8.0_262-b10 VM version: 25.262-b10 (Oracle Corporation) Linux 3.10.0-1127.13.1.el7.x86_64
2020-10-05 02:32:42,254 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - service_name: 'greybag' (source: Java System Properties)
2020-10-05 02:32:42,254 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - service_node_name: 'rbxnode1' (source: Java System Properties)
2020-10-05 02:32:42,254 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - capture_body: 'ALL' (source: Java System Properties)
2020-10-05 02:32:42,254 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - server_urls: 'http://xx.xx.xx.xx:8200' (source: Java System Properties)
2020-10-05 02:32:42,254 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - server_timeout: '59s' (source: Java System Properties)
2020-10-05 02:32:42,254 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - api_request_time: '55s' (source: Java System Properties)
2020-10-05 02:32:42,254 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - application_packages: 'com.friendlydigits.*' (source: Java System Properties)
2020-10-05 02:32:42,254 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - log_level: 'TRACE' (source: Java System Properties)
2020-10-05 02:32:42,254 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - log_file: '/greybag/apm/elastic-apm.log' (source: Java System Properties)
2020-10-05 02:32:42,255 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - No plugins dir
2020-10-05 02:32:42,268 [main] ERROR co.elastic.apm.agent.util.DependencyInjectingServiceLoader - unable to instantiate 'co.elastic.apm.agent.httpclient.HttpClientInstrumentation', unsupported class version error: co/elastic/apm/agent/httpclient/HttpClientInstrumentation has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
2020-10-05 02:32:42,268 [main] ERROR co.elastic.apm.agent.util.DependencyInjectingServiceLoader - unable to instantiate 'co.elastic.apm.agent.httpclient.HttpClientAsyncInstrumentation', unsupported class version error: co/elastic/apm/agent/httpclient/HttpClientAsyncInstrumentation has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
2020-10-05 02:32:42,269 [main] ERROR co.elastic.apm.agent.util.DependencyInjectingServiceLoader - unable to instantiate 'co.elastic.apm.agent.httpclient.HttpRequestHeadersInstrumentation', unsupported class version error: co/elastic/apm/agent/httpclient/HttpRequestHeadersInstrumentation has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
2020-10-05 02:32:42,301 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.httpclient.ApacheHttpClientInstrumentation
2020-10-05 02:32:42,333 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.httpclient.ApacheHttpAsyncClientInstrumentation
2020-10-05 02:32:42,352 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.plugin.api.ElasticApmApiInstrumentation$StartTransactionWithRemoteParentInstrumentation
2020-10-05 02:32:42,398 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.concurrent.ForkJoinTaskInstrumentation
2020-10-05 02:32:42,405 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jaxrs.JaxRsTransactionNameInstrumentation
2020-10-05 02:32:42,406 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jaxws.JaxWsTransactionNameInstrumentation
2020-10-05 02:32:42,406 [main] DEBUG co.elastic.apm.agent.bci.ElasticApmAgent - Applying instrumentation co.elastic.apm.agent.jdbc.ConnectionInstrumentation
{"metricset":{"timestamp":1601861594314000,"samples":{"system.process.cpu.total.norm.pct":{"value":0.7383071148412129},"jvm.memory.heap.used":{"value":1520500736.0},"jvm.memory.non_heap.used":{"value":251118648.0},"jvm.memory.heap.max":{"value":3817865216.0},"jvm.gc.alloc":{"value":7664587752.0},"jvm.memory.non_heap.committed":{"value":288817152.0},"system.cpu.total.norm.pct":{"value":0.7297787144362486},"system.process.cgroup.memory.mem.usage.bytes":{"value":35433328640.0},"system.process.memory.size":{"value":11409514496.0},"system.process.cgroup.memory.stats.inactive_file.bytes":{"value":493170688.0},"jvm.memory.heap.committed":{"value":3028811776.0},"jvm.memory.non_heap.max":{"value":-1.0},"system.memory.actual.free":{"value":62315937792.0},"system.memory.total":{"value":67368673280.0},"jvm.thread.count":{"value":954.0}}}}
{"metricset":{"timestamp":1601861594314000,"tags":{"name":"PS Survivor Space"},"samples":{"jvm.memory.heap.pool.committed":{"value":67108864.0},"jvm.memory.heap.pool.max":{"value":67108864.0},"jvm.memory.heap.pool.used":{"value":25015736.0}}}}
2020-10-05 02:34:03,919 [elastic-apm-server-reporter] INFO co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Backing off for 0 seconds (+/-10%)
2020-10-05 02:34:03,919 [elastic-apm-server-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Error sending data to APM server: Error writing request body to server, response code is -1
2020-10-05 02:34:03,919 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Sending payload to APM server failed
java.io.IOException: Error writing request body to server
at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.checkError(HttpURLConnection.java:3597) ~[?:1.8.0_262]
at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.write(HttpURLConnection.java:3580) ~[?:1.8.0_262]
at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:253) ~[?:1.8.0_262]
at java.util.zip.DeflaterOutputStream.finish(DeflaterOutputStream.java:226) ~[?:1.8.0_262]
at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:238) ~[?:1.8.0_262]
at co.elastic.apm.agent.report.AbstractIntakeApiHandler.endRequest(AbstractIntakeApiHandler.java:156) [?:?]
at co.elastic.apm.agent.report.IntakeV2ReportingEventHandler.endRequest(IntakeV2ReportingEventHandler.java:172) [?:?]
at co.elastic.apm.agent.report.IntakeV2ReportingEventHandler.handleEvent(IntakeV2ReportingEventHandler.java:85) [?:?]
at co.elastic.apm.agent.report.IntakeV2ReportingEventHandler.onEvent(IntakeV2ReportingEventHandler.java:73) [?:?]
at co.elastic.apm.agent.report.IntakeV2ReportingEventHandler.onEvent(IntakeV2ReportingEventHandler.java:44) [?:?]
at co.elastic.apm.agent.shaded.lmax.disruptor.BatchEventProcessor.processEvents(BatchEventProcessor.java:168) [?:?]
at co.elastic.apm.agent.shaded.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:125) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_262]
2020-10-05 02:34:03,919 [elastic-apm-server-reporter] WARN co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - null
2020-10-05 02:34:05,067 [elastic-apm-circuit-breaker] TRACE co.elastic.apm.agent.impl.circuitbreaker.CircuitBreaker - Scheduling next stress monitor polling in 5000s