KB Article #69701
Out of memory issue happened on SAP connector when processing bigger messages
* "Out of memory" issue happened in system. Please refer to the log segment below. Integrator stopped fetching IDOC messages from SAP after this error. Then we have to restart all tasks to handle this.
ERROR:20110329:01.48.13.92:procengine(procengine(transadaptenv)):../../session.s4:1275:Exception in method send: java.lang.OutOfMemoryError: unable to create new native thread
ERROR :20110329:01.48.13.93:procengine(procengine(transadaptenv)):../../session.s4:1285:the MBC 'E:\Axway\Synchrony\Integrator\4edi\component\transadaptenv.x4' threw an exception 'XDK', error 567 in statement 'ADAPTER.SENDMESSAGE_1'
Resolution
- To increase the JVM memory you can add in file %CORE_LOCAL%\config\java\jvm.cfg the line
WINDOWS:Replace== -Xmx==256m
UNIX:Replace== -Xmx==256m
(for windows and unix respectively)
The above line will increase the memory allocation for all the procengines. If you want to increase it for the specific procengine for example used by SAP adapter, then you can add the above line above in the distinct file jvmcfg_new.cfg. Then you need to modify %CORE_LOCAL%\config\environment.dat to use the new cfg file for the configuration of sap adapter procengine. Lines to be added in environment.dat (name of procengine in this example should be changed):
ProcengineSAP:
CORE_JVM_COMMON_CREATE_FILES=%CORE_JVM_COMMON_CREATE_FILES%;%CORE_LOCAL%/config/java/jvmcfg_new.cfg