newrelic-java-agent icon indicating copy to clipboard operation
newrelic-java-agent copied to clipboard

Add configuration options to the Java APM Agent to control JFR Events Queue Size.

Open kbford56 opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe.

We would like to have the option to control the JFR EVENTS QUEUE SIZE on the Java APM agent side via an environment variable or newrelic.yml config file attribute.

This is so that apps that generate more than the New Relic designated default JFR event queue size don't lose that information before it's sent over to NewRelic.

Feature Description

If we can control the JFR Event Queue Size, we could also effectively stop the NR java agent spamming logs with "Getting error Rejecting RecordedEvent – queue is full" messages without having to disable JFR.

We are looking for functionality similar to the one described in the GitHub PR below:

https://github.com/newrelic/newrelic-java-agent/pull/371

Describe Alternatives

N/A

Additional context

N/A

Priority

Please help us better understand this feature request by choosing a priority from the following options: [Nice to Have]

kbford56 avatar Sep 19 '23 14:09 kbford56

https://issues.newrelic.com/browse/NR-162289

https://new-relic.atlassian.net/browse/NR-162289