Troubleshooting
Problem
When querying large amounts of data with methods or APIs on the MapGlobalIndex, the method returns a large amount of data and you see out of memory (OOM) conditions.
Symptom
MapGlobalIndex method returns a large amount of data and you see out of memory (OOM) conditions.
Cause
There is a lot of indexed data and this data is very large.
Diagnosing The Problem
The following methods might return a large amount of data: findValues(Object...), findValuesByAttribute(Object...), findEntries(Object...) and findEntriesByAttribute(Object...)
Resolving The Problem
Retrieve the data in smaller groups. Use the methods findKeys(Object...) or findKeysByAttribute(Object...) instead, and then use ObjectMap.getAll(java.util.List) to retrieve the values in smaller groups; for example groups of 10.
Was this topic helpful?
Document Information
Modified date:
22 June 2018
UID
swg21640184