cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.OutOfMemoryError: Java heap space (failed to allocate 8024 bytes)

Former Member
0 Kudos
7,322

Hi,

We are trying to export our system XI 7.1 with EhP1 using the SWPM SP18 to migrate it to other server. On the last phase, during the java export we get the following error during T_CHUNK table export :

com.sap.inst.jload.Jload printErrorInformation

SEVERE: An error occured during execution. Please consult SAP note 942766 for first steps on troubleshooting the problem.

FATAL: Main class "com.sap.inst.jload.Jload" cannot be started:

FATAL: java.lang.OutOfMemoryError: Java heap space (failed to allocate 8024 bytes)

at com.microsoft.sqlserver.jdbc.TDSPacket.<init>(Unknown Source)

at com.microsoft.sqlserver.jdbc.TDSReader.readPacket(Unknown Source)

at com.microsoft.sqlserver.jdbc.TDSReader.readPacket(Unknown Source)

at com.microsoft.sqlserver.jdbc.TDSReader.readResponse(Unknown Source)

at com.microsoft.sqlserver.jdbc.TDSCommand.startResponse(Unknown Source)

at com.microsoft.sqlserver.jdbc.TDSCommand.startResponse(Unknown Source)

at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$1PreparedHandleClose.doExecute(Unknown Source)

at com.microsoft.sqlserver.jdbc.TDSCommand.execute(Unknown Source)

at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(Unknown Source)

at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(Unknown Source)

at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.closePreparedHandle(Unknown Source)

at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.close(Unknown Source)

at com.sap.sql.jdbc.basic.BasicPreparedStatement.close(BasicPreparedStatement.java:261)

at com.sap.sql.jdbc.direct.DirectPreparedStatement.close(DirectPreparedStatement.java:1388)

at com.sap.sql.jdbc.direct.DirectPreparedStatement.close(DirectPreparedStatement.java:1169)

at com.sap.sql.jdbc.common.CommonPooledStatement.close(CommonPooledStatement.java:397)

at com.sap.sql.jdbc.stmtpool.StatementPool$PooledStatementLink.remove(StatementPool.java:459)

at com.sap.sql.jdbc.stmtpool.StatementPool.add(StatementPool.java:1033)

at com.sap.sql.jdbc.AbstractPooledStatement.statementClosed(AbstractPooledStatement.java:308)

at com.sap.sql.jdbc.common.CommonPreparedStatement.close(CommonPreparedStatement.java:1171)

at com.sap.sql.jdbc.common.CommonConnectionImpl.closeStatements(CommonConnectionImpl.java:1313)

at com.sap.sql.jdbc.common.CommonConnectionImpl.close(CommonConnectionImpl.java:1265)

at com.sap.sql.jdbc.common.CommonConnectionImpl.close(CommonConnectionImpl.java:354)

at com.sap.inst.jload.db.DBConnection.disconnect(DBConnection.java:163)

at com.sap.inst.jload.Jload.main(Jload.java:764)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:156)

FATAL: com.sap.engine.offline.OfflineToolStart will abort now with exitcode 2

We have modifyed the control.xml according SAP note "1768708 - OutOfMemoryError: Java heap space - Error in SWPM (Export)" to increase the maxheap to 2048m . We started the process but again the same error.

We have also checked the following notes and used the solutions proposed there but with no luck:

https://launchpad.support.sap.com/#/notes/0001173398

https://launchpad.support.sap.com/#/notes/0001276704

https://launchpad.support.sap.com/#/notes/0001768708

https://launchpad.support.sap.com/#/notes/0001768734

https://launchpad.support.sap.com/#/notes/0001420809

1295744 - XI/PI Java Components: JVM Perm Size Memory Usage

service.sap.com/sap/support/notes/1768708

1907699 - java.lang.OutOfMemoryErrorerror in UPGRADE/EVALUATION/UPGEVAL

1276704 - jload export fails with java.lang.OutOfMemoryError

1768734 - Error during the import: "java.io.IOException: Data file seems to be in old format (no header)"

1603093 - SAP JVM 4.1 parameters NetWeaver 2004 and 7.0

Do you have any idea ?

Thanks a lot, Beatriz

View Entire Topic
former_member188883
Active Contributor
0 Kudos

Hi,

Could you try using latest SAP kernel files.

Regards,
Deepak Kori