Disable profiling apm-agent-java

Hello,
Starting from v1.14.0 Java APM Agent creates in the temporary folder the following files:
/tmp/apm-activation-events-*.bin
/tmp/apm-traces-*.jfr
They are created regardless of the whether profiling is enabled/disabled.
Is there any setting I missed that may switch it off.
I have found the PR (https://github.com/elastic/apm-agent-java/pull/1350), which is not officially released, but it is only about configuring the directory where to store such files.

Any help would be appreciated.

Hi @Sergiusz, welcome to our forum.

Yes, currently those files are created even if the profiler is disabled profiling_inferred_spans_enabled=false.

Making those files created lazily and only if needed seems a good improvement, I've opened a pull-request for that: https://github.com/elastic/apm-agent-java/pull/1360. You can subscribe to it to get notifications when it's merged.

Have a nice day.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.