Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support JFR emergency dumps on OOM #10600

Open
roberttoyonaga opened this issue Jan 30, 2025 · 0 comments
Open

Support JFR emergency dumps on OOM #10600

roberttoyonaga opened this issue Jan 30, 2025 · 0 comments

Comments

@roberttoyonaga
Copy link
Collaborator

roberttoyonaga commented Jan 30, 2025

Feature request

Please include the following information:

Is your feature request related to a problem? Please describe.
Currently it's possible to receive heap dumps on out of memory (OOM) but this is not yet possible for JFR. OpenJDK has this feature and we should try to implement it as well in Native Image. One of JFR's primary goals is to provide insight in the event of a crash like OOME.

Describe the solution you'd like.
The JFR implementation in Native Image should support emergency dumping like in OpenJDK.

Describe who do you think will benefit the most.
GraalVM users would be most likely to benefit. Heap dumps are probably the most important report in the event of OOM, but insights from JFR could also be very beneficial. For example, JFR's CPU and allocation profiling can help locate where problem areas are occurring. JFR's garbage collection events and thread data could also be helpful with diagnosing problems.

Describe alternatives you've considered.
There isn't much of an alternative other than leaving this feature unimplemented.

Express whether you'd like to help contributing this feature
I can help contribute this.

Update #5410 when completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant