RFD: Throttling Support for Java-Level JFR Events

Erik Gahlin erik.gahlin at oracle.com
Wed Nov 15 21:01:43 UTC 2023


Hi Denghui,

It's been considered it, but we like to see a few real use cases before adding it.

Do you see a use case for JDK events or for user defined events?

If user defined, could you describe the events?

The JFR API allows users to create their own throttling mechanism using the SettingControl class.

We are aware of that exception and I/O events could potentially benefit from throttling, but not sure the mechanism should work similar to native events. There is also visualization aspects to take into consideration. JMC would need to be updated so it can differentiate between outliers or throttling.

Thanks,
Erik

________________________________
From: hotspot-jfr-dev <hotspot-jfr-dev-retn at openjdk.org> on behalf of Denghui Dong <denghui.ddh at alibaba-inc.com>
Sent: Wednesday, November 15, 2023 9:20 AM
To: hotspot-jfr-dev <hotspot-jfr-dev at openjdk.java.net>
Subject: RFD: Throttling Support for Java-Level JFR Events

Hi team,

We have observed increased adoption of JFR for information collection within our internal applications and frameworks.

However, we've encountered situations where critical events occur frequently, prompting us to explore
the possibility of introducing a throttling mechanism for Java-level events.

Currently, my understanding is that throttling is exclusively supported for native event ObjectAllocationSample.
Should we consider extending this feature to Java-level events?

Thanks,
Denghui Dong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-jfr-dev/attachments/20231115/4fa6df53/attachment-0001.htm>


More information about the hotspot-jfr-dev mailing list