SAP Knowledge Base Article - Preview

1768708 - OutOfMemoryError: Java heap space - Error in SWPM (Export)

Symptom

Software Provisioning Manager tool (SWPM) stops the export during step JMigmonExportJ2EEDatabase because one of the packages failed due to the following error:

java.lang.OutOfMemoryError: Java heap space

SWPM does not show a clear error message in the pop message. Checking the sapinst_dev.log file, a similar message like below is found:

sapinst_dev.log
WARNING     <date> <time>
           CJSlibModule::writeWarning_impl()
Execution of the command "/usr/sap/<SID>/<instance>/exe/sapjvm_6/bin/java -classpath
/usr/sap/<SID>/<instance>/global/sltools/sharedlib/sap.com~tc~bl~offline_launcher~impl.jar -showversion -Xmx1024m -XX:
+HeapDumpOnOutOfMemoryError com.sap.engine.offline.OfflineToolStart com.sap.inst.jmigmon.jMigMon
/sapmnt/<SID>/SYS/global/security/lib/tools/iaik_jce.jar; /sapmnt/<SID>/SYS/global/security/lib/tools/iaik_jsse.jar;
/sapmnt/<SID>/SYS/global/security/lib/tools/iaik_smime.jar;/sapmnt/<SID>/SYS/global/security/lib/tools/iaik_ssl.jar;
/sapmnt/<SID>/SYS/global/security/lib/tools/w3c_http.jar;/usr/sap/<SID>/SYS/global/sltools/sharedlib;
/usr/sap/<SID>/<instance>/exe/mssjdbc/jdbc4/sqljdbc4.jar -mode export -sid <SID> -dsn jdbc/pool/<SID> -ssprops
/sapmnt/<SID>/SYS/global/security/data/SecStore.properties -sskey /sapmnt/<SID>/SYS/global/security/data/SecStore.key
-exportDirs <export dump>/JAVA/JDMP -suppressVerboseLog" finished with return code 64. Output:
 
java version
Java(TM) SE Runtime Environment
SAP Java Server VM
   INFO: Loading tool launcher...
   INFO: [OS: <operational system>]
   INFO: Main class to start: "com.sap.inst.jmigmon.jMigMon"
   INFO: Loading 41 JAR files: [..]
   INFO: Start
completed:0 aborted:0 running:1 pending:17
completed:1 aborted:0 running:0 pending:17
(..)
 
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid45920.hprof ...
Heap dump file created [572493787 bytes in 3.463 secs]
 
(..)
completed:16 aborted:1 running:0 pending:1
 
TRACE      <date> <time>
JavaApplication execution finished
 
TRACE      <date> <time>
NWDB._callJmigmon(export) done: throwing
 
ERROR <date> <time>
unknown message ID (nw.syscopy.jmigmonRunFailed) with parameter(s):
/usr/sap/<SID>/<instance>/global/sltools/sharedlib/sap.com~tc~bl~offline_launcher~impl.jar -showversion -Xmx1024m -XX:
+HeapDumpOnOutOfMemoryError com.sap.engine.offline.OfflineToolStart com.sap.inst.jmigmon.jMigMon
/sapmnt/<SID>/SYS/global/security/lib/tools/iaik_jce.jar; /sapmnt/<SID>/SYS/global/security/lib/tools/iaik_jsse.jar;
/sapmnt/<SID>/SYS/global/security/lib/tools/iaik_smime.jar;/sapmnt/<SID>/SYS/global/security/lib/tools/iaik_ssl.jar;
/sapmnt/<SID>/SYS/global/security/lib/tools/w3c_http.jar;/usr/sap/<SID>/SYS/global/sltools/sharedlib;
/usr/sap/<SID>/<instance>/exe/mssjdbc/jdbc4/sqljdbc4.jar -mode export -sid <SID> -dsn jdbc/pool/<SID> -ssprops
/sapmnt/<SID>/SYS/global/security/data/SecStore.properties -sskey /sapmnt/<SID>/SYS/global/security/data/SecStore.key
-exportDirs <export dump>/JAVA/JDMP -suppressVerboseLog 64 
/sapinst_instdir/NW/MSS/MSS/COPY/EXP/AS-JAVA/EXP/jmigmon.java.log


Read more...

Environment

  • Software Provisioning Manager
  • SAP System with JAVA stack (JAVA only or Dual Stack)
  • SAP Systems based on SAP NetWeaver 7.1 or higher
  • Database Independent
  • Operational System Independent

Product

SAP NetWeaver 7.1 ; SAP NetWeaver 7.2 ; SAP NetWeaver 7.3 ; SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP enhancement package 1 for SAP NetWeaver 7.3

Keywords

System Copy, Export, Maxheap, Outofmemory, Jload, Software Provisioning Manager, SWPM, Migration, Exporting, Migrating, Import, Database, Package, File, Copying, Importing, Installation, Installing, Control.xml, Windows, Linux, Unix, NT, JMigmon, Migration Monitor, java.lang.OutOfMemoryError: Java heap space (failed to allocate, suppressVerboseLog" finished with return code 64, HeapDumpOnOutOfMemoryError , KBA , BC-INS-MIG , OS/DB Migrations with SWPM and DB refresh , BC-INS-JCI , Java component inst. / jload jmigmon, jsizecheck , BC-INS-SWPM , Installation with Software Provisioning Manager , 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.