hi all,
testing the java agent on our application we see that with the application under load the agent is not able to send the report to APM server and get HTTP 400 error
this is the specific error:
co.elastic.apm.agent.report.IntakeV2ReportingEventHandler
APM Server version: 7.9.2
APM Agent language and version: 1.18.1 EN
Tomcat version: 8.0.52
Java version: 1.8.161
this is the full trace:
2020-11-24 14:52:03,756 [elastic-apm-server-reporter] INFO co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Backing off for 0 seconds (+/-10%)
--
2020-11-24 14:52:03,756 [elastic-apm-server-reporter] WARN co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - {
"accepted": 7323,
"errors": [
{
"message": "failed to validate error: error validating JSON: I[#] S[#] doesn't validate with \"error#\"\n I[#] S[#/allOf/1] allOf failed\n I[#] S[#/allOf/1/allOf/3] allOf failed\n I[#] S[#/allOf/1/allOf/3/then] if-then failed\n I[#] S[#/allOf/1/allOf/3/then/required] missing properties: \"trace_id\"",
"document": "{\"error\":{\"timestamp\":28297279401,\"transaction\":{\"sampled\":false},\"id\":\"7e07d61a687b28373635ddf414039e9e\",\"parent_id\":\"cd08dc2f11f77e86\",\"context\":{\"tags\":{}},\"culprit\":\"com.mymoney.myfin.platform.backend.service.external.EdsRemoteCardProvider.createCard(EdsRemoteCardProvider.java:121)\",\"exception\":{\"message\":\"Connect to px-dev-11.px.iefcloud.com:8443 [px-dev-11.px.iefcloud.com/172.31.17.162] failed: Connessione rifiutata (Connection refused)\",\"stacktrace\":[{\"filename\":\"DefaultHttpClientConnectionOperator.java\",\"classname\":\"org.apache.http.impl.conn.DefaultHttpClientConnectionOperator\",\"function\":\"connect\",\"library_frame\":true,\"lineno\":151,\"module\":\"org.apache.http.impl.conn\"},{\"filename\":\"PoolingHttpClientConnectionManager.java\",\"classname\":\"org.apache.http.impl.conn.PoolingHttpClientConnectionManager\",\"function\":\"connect\",\"library_frame\":true,\"lineno\":353,\"module\":\"org.apache.http.impl.conn\"},{\"filename\":\"MainClientExec.java\",\"classname\":\"org.apache.http.impl.execchain.MainClientExec\",\"function\":\"establishRoute\",\"library_frame\":true,\"lineno\":380,\"module\":\"org.apache.http.impl.execchain\"},{\"filename\":\"MainClientExec.java\",\"classname\":\"org.apache.http.impl.execchain.MainClientExec\",\"function\":\"execute\",\"library_frame\":true,\"lineno\":236,\"module\":\"org.apache.http.impl.execchain\"},{\"filename\":\"ProtocolExec.java\",\"classname\":\"org.apache.http.impl.execchain.ProtocolExec\",\"function\":\"execute\",\"library_frame\":true,\"lineno\":184,\"module\":\"org.apache.http.impl.execchain\"},{\"filename\":\"RetryExec.java\",\"classname\":\"org.apache.http.impl.execchain.RetryExec\",\"function\":\"execute\",\"library_frame\":true,\"lineno\":88,\"module\":\"org.apache.http.impl.execchain\"},{\"filename\":\"RedirectExec.java\",\"classname\":\"org.apache.http.impl.execchain.RedirectExec\",\"function\":\"execute\",\"library_frame\":true,\"lineno\":110,\"module\":\"org.apache.http.impl.execchain\"},{\"filename\":\"InternalHttpClient.java\",\"classname\":\"org.apache.http.impl.client.InternalHttpClient\",\"function\":\"doExecute\",\"library_frame\":true,\"lineno\":184,\"module\":\"org.apache.http.impl.client\"},{\"filename\":\"CloseableHttpClient.java\",\"classname\":\"org.apache.http.impl.client.CloseableHttpClient\",\"function\":\"execute\",\"library_frame\":true,\"lineno\":82,\"module\":\"org.apache.http.impl.client\"},{\"filename\":\"CloseableHttpClient.java\",\"classname\":\"org.apache.http.impl.client.CloseableHttpClient\",\"function\":\"execute\",\"library_frame\":true,\"lineno\":55,\"module\":\"org.apache.http.impl.client\"},{\"filename\":\"HttpComponentsClientHttpRequest.java\",\"classname\":\"org.springframework.http.client.HttpComponentsClientHttpRequest\",\"function\":\"executeInternal\",\"library_frame\":true,\"lineno\":87,\"module\":\"org.springframework.http.client\"},{\"filename\":\"AbstractBufferingClientHttpRequest.java\",\"classname\":\"org.springframework.http.client.AbstractBufferingClientHttpRequest\",\"function\":\"executeInternal\",\"library_frame\":true,\"lineno\":48,\"module\":\"org.springframework.http.client\"},{\"filename\":\"AbstractClientHttpRequest.java\",\"classname\":\"org.springframework.http.client.AbstractClientHttpRequest\",\"function\":\"execute\",\"library_frame\":true,\"lineno\":53,\"module\":\"org.springframework.http.client\"},work.ReflectiveMethodInvocation\",\"function\":\"proceed\",\"library_frame\":true,\"lineno\":174,\"module\":\"org.springframework.aop.framework\"},{\"filename\":\"MethodSecurityInterceptor.java\",\"classname\":\"org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor\",\"function\":\"invoke\",\"library_frame\":true,\"lineno\":69,\"module\":\"org.springframework.security.access.intercept.aopalliance\"},{\"filename\":\"ReflectiveMethodInvocation.java\",\"classname\":\"org.springframework.aop.framework.ReflectiveMethodInvocation\",\"function\":\"proceed\",\"library_frame\":true,\"lineno\":185,\"module\":\"org.springframework.aop.framework\"}],\"type\":\"java.net.ConnectException\"}]}}}"
}
]
}
2020-11-24 14:55:58,703 [commons-pool-EvictionTimer] WARN co.elastic.apm.agent.impl.ElasticApmTracer - Tried to start a transaction with a non-zero reference count 3 '' 00-00000000000000000000000000000000-0000000000000000-00 (6068d2b7)
sorry the full trace do not enter here, i can provide it later, this is a sample
this is generated a lot of times....
this is the outcome on the APM UI:
i also see there are missing methods not shown. Is the tomcat too busy ?