SAP Knowledge Base Article - Preview

2949709 - SAP Java Connector - The background of "OutOfMemoryError: Java heap space" issue

Symptom

You face OOM error dropped by JCo library via an RFC call with a java application.

JCO<YYYYMMDD>_<time>.trc files from JCo Framework show:

[...]
[JCoAPI] exception occurred:
com.sap.conn.jco.JCoException: (104) JCO_ERROR_SYSTEM_FAILURE: Java heap space (raised by system [JCoServer@euls27052<-QEE|eup2501|a_rfc])
[...]
 at java.lang.Thread.run(Thread.java:748)
Caused by: RfcException raised by system [JCoServer@euls27052<-QEE|eup2501|a_rfc]:
 message: Java heap space
 return code: RFC_FAILURE (1)
 error group: 104
 key: RFC_ERROR_SYSTEM_FAILURE
[...]
Caused by: RfcException raised by system [JCoServer@euls27052<-QEE|eup2501|a_rfc]:
 message: Java heap space
 return code: RFC_FAILURE (1)
 error group: 104
 key: RFC_ERROR_SYSTEM_FAILURE
[...]
Caused by: java.lang.OutOfMemoryError: Java heap space
[...]


Read more...

Environment

SAP Java Connector

Product

SAP NetWeaver all versions

Keywords

out of memory, memory issue , KBA , BC-MID-CON-JCO , Java-Connector , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.