IBM Support

When querying data with a dynamic global index, a large amount of data is returned causing out of memory conditions

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.

[{"Product":{"code":"SSS8GR","label":"WebSphere DataPower XC10 Appliance"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Not Applicable","Platform":[{"code":"PF009","label":"Firmware"}],"Version":"2.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
22 June 2018

UID

swg21640184