"Memory allocation failed" error when TIBCO ActiveMatrix Adapter for SAP is processing a large iDoc from SAP.
book
Article ID: KB0085583
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for SAP Solutions
-
Not Applicable
-
Description
Description: When Adapter is processing a large iDoc from SAP, the following error may be thrown indicating the adapter process cannot allocate enough memory to accomodate the large iDoc though there is sufficient free memory on the server.
===== Maximum accessible heap for the SDK library, libmaverick5864.so and adapter executable adr3u, is by default limited. The SDK cannot allocate sufficient heap space for processing large iDocs.
Resolution
The following steps can be followed to unlimit the maxdata property for both the SDK library libmaverick5864.so and the Adapter executable adr3u.
1). Shut down all adapter processes. 2). Set the related ulimit parameters (data, stack, memory) to unlimited. 3). Add the flag "tibco.minstanceimpl=LIST" in the Adapter tra file to make SDK use a linked list as the data structure for MInstances. 4). Go to <TIBCO_HOME>/adapter/sdk/5.8/lib directory. 5). Execute the command, "ldedit -b maxdata:0 libmaverick5864.so" to change the maxdata property on libmaverick5864.so to 0x00000000. 6). Execute the command, "dump -X64 -o libmaverick5864.so" to verify the change on libmaverick5864.so. 7). Go to <TIBCO_HOME>/adapter/adr3/6.2/bin directory. 8). Execute the command, "ldedit -b maxdata:0 adr3u" to change the maxdata property on adr3u to 0x00000000. 9). Execute the command, "dump -X64 -o adr3u" to verify the change on adr3u. 10). Start the Adapter and send a large iDoc from SAP to confirm the changes.
Issue/Introduction
"Memory allocation failed" error when TIBCO ActiveMatrix Adapter for SAP is processing a large iDoc from SAP.