Skip to content

[GR-38413] Add support for -XX:+ExitOnOutOfMemoryError #4509

@vsevel

Description

@vsevel

Feature request

Is your feature request related to a problem? Please describe.
When we get an OOM, we want the pod to restart automatically. We need the ExitOnOutOfMemoryError for this.

Describe the solution you'd like.
Support for the ExitOnOutOfMemoryError flag in GraalVM Native Image.

Describe who do you think will benefit the most.
GraalVM users.

Describe alternatives you've considered.
A hack is to allocate a heap that will make the memory of the container grow bigger than its limit. But that is hard to tune.

Additional context.
N/A

Express whether you'd like to help contributing this feature
If you'd like to contribute, please read the contribution guide.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions