Hi,
I tried to instrument a jenkins instance, but the thread for the elastic apm agent dies.
Kibana version: 7.2
Elasticsearch version: 7.2
APM Server version: 7.2
APM Agent language and version: Java, 1.7
Steps to reproduce:
- Install Jenkins
- Add the following to JENKINS_JAVA_OPTIONS:
-javaagent:/opt/elastic-apm-agent-1.7.0.jar -Delastic.apm.disable_instrumentation='' -Delastic.apm.application_packages=hudson,jenkins,org.eclipse -Delastic.apm.trace_methods=hudson.,jenkins.,org.eclipse.* -Delastic.apm.service_name=jenkins -Delastic.apm.server_url=http://apm-server:8200" - Restart Jenkins
Provide logs and/or server output (if relevant):
2019-07-05 12:25:55.744+0000 [id=13] SEVERE h.i.i.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler#uncaughtException: A thread (apm-request-timeout-timer/13) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code.
java.lang.IllegalStateException: Ring buffer has no available slots
at co.elastic.apm.agent.report.ApmServerReporter.flush(ApmServerReporter.java:173)
at co.elastic.apm.agent.report.IntakeV2ReportingEventHandler$FlushOnTimeoutTimerTask.run(IntakeV2ReportingEventHandler.java:412)
at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
at java.base/java.util.TimerThread.run(Timer.java:506)
2019-07-05 14:26:21.329 [apm-reporter] INFO co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Backing off for 0 seconds (+/-10%)
2019-07-05 14:26:21.329 [apm-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Error sending data to APM server: Error writing request body to server, response code is -1
2019-07-05 14:26:21.330 [apm-reporter] WARN co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - null
2019-07-05 14:26:21.332 [apm-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Failed to handle event of type SPAN with this error: Timer already cancelled.
2019-07-05 14:26:21.333 [apm-reporter] INFO co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Backing off for 1 seconds (+/-10%)
Any ideas?
Best regards,
Robert