RFR: 8064814: Print more helpful error message when getting OOM due to low Java Heap base when running with CompressedOops

Poonam Bajaj Parhar poonam.bajaj at oracle.com
Thu May 5 13:49:41 UTC 2016


Hello,

Please review this simple fix for:
Bug 8064814 <https://bugs.openjdk.java.net/browse/JDK-8064814> : Print 
more helpful error message when getting OOM due to low Java Heap base 
when running with CompressedOops
Webrev: http://cr.openjdk.java.net/~poonam/8064814/webrev.00/

Problem: We can encounter out-of-native-heap errors when the Java heap 
is either placed in the first 4gb or 32gb address space when running 
with the CompressedOops. The Java Heap base in these cases limits and 
blocks the growth of the native heap.

Fix: Print better error message giving an indication that the 
out-of-native heap error may be due to the use of CompressedOops and how 
it can be resolved. These changes also check if the process is running 
in 32-bit mode and then print the appropriate 32-bit or 64-bit related 
suggestions.

Testing: Manual testing

Thanks,
Poonam

<https://bugs.openjdk.java.net/browse/JDK-8064814>


More information about the hotspot-runtime-dev mailing list