Additional JEPS 8182070 requirement: avoiding container OOM

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Additional JEPS 8182070 requirement: avoiding container OOM

Glyn Normington
I would like to mention an additional requirement for JEPS 8182070 ( avoid the JVM hitting container OOM
by strictly bounding the amount of (physical) memory that the JVM consumes.
This may be implicit in the document, but I think it should be made an
explicit goal.

If a java application hits container OOM, no detailed diagnostics, such as
those associated with an OutOfMemoryError or a JVMTI resource exhaustion
event, are presented to the user, so the user finds it very difficult to
know how to fix the problem.

The Cloud Foundry OSS project has done quite a bit of work on this problem
and provides a couple of utilities which help when running a JVM in a

* Java memory calculator ([1], [2]) to determine JVM memory settings,
* jvmkill JVMTI agent ([3]) to report detailed diagnostics on a resource
exhaustion event.



[2] Design doc: