1. During Java export using sapinst, you encounter error.

  2. View C:/Program Files/sapinst_instdir/PI71/LM/MSS/COPY/EXP/AS-JAVA/EXP/jload.java.log

    SEVERE: java.lang.OutOfMemoryError: Java heap space (failed to allocate 256268168 bytes)
    at com.microsoft.sqlserver.jdbc.SQLServerBlob.getBytes(Unknown Source)
    at com.sap.sql.jdbc.common.CommonWrappedBlob.getBytes(CommonWrappedBlob.java:59)
    at com.sap.inst.jload.db.BlobHandler.writeValue(BitHandler.java:174)
    at com.sap.inst.jload.db.DBTable.unload(DBTable.java:245)
    at com.sap.inst.jload.Jload.dbExport(Jload.java:250)
    at com.sap.inst.jload.Jload.executeJob(Jload.java:503)
    at com.sap.inst.jload.Jload.main(Jload.java:743)
    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:161)
  1. Go to C:\Program Files\sapinst_instdir\PI71\LM\MSS\COPY\EXP\AS-JAVA\EXP

  2. Edit control.xml in a notepad


  3. Search and replace the following

  • jloadHeap from Xmx1024 to Xmx2048m


  • jdkArgs to Xmx512


  • jdkArgs to Xmx2048


  • jdkArgs to Xmx2048