We are recently in a process of adding Elastic APM. But after Performance testing of API with APM agent throughput of API is reduced by 50%.
Throughput before adding APM agent - 15200/sec
Throughput after adding APM agent - 8100/sec
APM-Agent configuration :
logLevel: 'info', serverTimeout: "10s", captureExceptions: true, sourceLinesErrorAppFrames: 5, sourceLinesErrorLibraryFrames: 0, captureErrorLogStackTraces: "messages", captureSpanStackTraces: false, stackTraceLimit: 15, transactionSampleRate:1, captureBody:false, instrument:true, disableInstrumentations:["redis","mysql"], transactionMaxSpans:50, apiRequestTime:"10s", apiRequestSize:"750kb"
We tried using different configurations but there wasn't much improvement in throughput.
apiRequestSize but insignificant improvement.
Do we need to tune apm-server configurations?
Is there anything else need to be tuned in APM agent?
Please let me know if you need more info on this.
Kibana version: 6.5.4
Elasticsearch version: 6.5.4
APM Server version: 6.5.4
APM Agent language and version: Node js, 2.1.0