Hi Team,
I have hosted an apm-server on one of my servers with host as localhost:8200.
I am using a java application via tomcat and I have provided -Delastic.apm.server_url=http://apm-server-ip:8200
But the java application provides the below error
ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Error trying to connect to APM Server at http://...:8200/intake/v2/events. Some details about SSL configurations corresponding the current connection are logged at INFO level.
2021-08-18 19:49:42,956 [elastic-apm-server-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Failed to handle event of type JSON_WRITER with this error: Connection refused (Connection refused)
2021-08-18 19:49:42,956 [elastic-apm-server-reporter] INFO co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Backing off for 0 seconds (+/-10%)
2021-08-18 19:49:43,154 [elastic-apm-server-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Error trying to connect to APM Server at http://...:8200/intake/v2/events. Some details about SSL configurations corresponding the current connection are logged at INFO level.
2021-08-18 19:49:43,154 [elastic-apm-server-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Failed to handle event of type JSON_WRITER with this error: Connection refused (Connection refused)
2021-08-18 19:49:43,154 [elastic-apm-server-reporter] INFO co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Backing off for 1 seconds (+/-10%)
2021-08-18 19:49:44,385 [elastic-apm-server-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Error trying to connect to APM Server at http://...:8200/intake/v2/events. Some details about SSL configurations corresponding the current connection are logged at INFO level.
2021-08-18 19:49:44,386 [elastic-apm-server-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Failed to handle event of type JSON_WRITER with this error: Connection refused (Connection refused)
2021-08-18 19:49:44,386 [elastic-apm-server-reporter] INFO co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Backing off for 4 seconds (+/-10%)
When I set up the APM -server and APM-agent on the same server it works fine but if it's on a separate box I am getting the above error
can someone guide me how to solve this