How to avoid a heap size error when getting a large amount of documents with attachments from Domino?

How to avoid a heap size error when getting a large amount of documents with attachments from Domino?

book

Article ID: KB0084553

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix Adapter for Lotus Notes -
Not Applicable -

Description

Resolution:
Description:
=========
Received a heap size error from the TIBCO ActiveMatrix(R) Adapter for Lotus Notes when trying to read more than a certain amount of documents, which is due to the size of the attachments.  Is there a way the number of documents read can be limited by the Request-Response Service?

Environment:
==========
TIBCO ActiveMatrix(R) Adapter for Lotus Notes 6.0.0
All platforms

Resolution:
=========
Instead of reading the entire documents with its contents all at once which is memory intensive, break up the read into 2 parts. First get a list of the doc IDs for all documents, then iterate through the doc ID list and read one document at a time. This would do more read operations with smaller chunks of data but not processing a large chunk of data which requires a large heap space for the Lotus Notes adapter.

Issue/Introduction

How to avoid a heap size error when getting a large amount of documents with attachments from Domino?