Thinking there is free space in heap, while JRockit reports OutOfMemoryError on allocLargeObjectOrArray (Doc ID 1925284.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle JRockit - Version R27.6 and later
Information in this document applies to any platform.

Goal

Free space seems to exist in heap, while JRockit reports OutOfMemoryError on allocLargeObjectOrArray

The stacktrace is like:

Source of error: allocLargeObjectOrArray - Object size: 4194320, Num elements: 2097152

 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms