RFR: 8256916: Add JFR event for OutOfMemoryError

Erik Gahlin egahlin at openjdk.java.net
Wed Dec 2 07:21:56 UTC 2020


On Wed, 2 Dec 2020 04:15:38 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:

>> Will this fix be able to handla all cases of OOM?
>
> @egahlin Is this answer sufficient for you about OOM handling? All comments are welcome.

I think there is a use case for getting an event when an OOM occurs, but the long term plan is to change so that a jdk.JavaErrorThrow is emitted when the exception is thrown, not when the object is allocated. When that is fixed, it will take care of OOME automatically - at all places. I think it is confusing for users to not get an event at every OOME and users/customers will file bugs.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1403


More information about the hotspot-jfr-dev mailing list