Technote

(troubleshooting)
Out Of Memory message occurs when running IDRESGEN
Problem(Abstract)
When you run IDRESGEN, an Out of Memory message occurs.

At the command line, the following exception is thrown:
java.lang.OutOfMemoryError.

This occurs only when loading larger files.
Cause This occurs when the Java™ Virtual Machine heap is exhausted. Resolving the problem Modify the script for idresgen (idresgen.sh) to increase the available heap size.

You can modify the idresgen.sh script within the commerce\bin directory by performing the following steps:

  1. Within the idresgen.sh file, search for the following line:
    ${JAVA_EXE?} $JVMPROPERTIES -classpath $CLASSPATH  $IDRESOLVER
    $CUSTOMIZER "$@" > $LOG

  2. Add the following parameters:
    -Xms512M -Xmx512M

  3. The resulting line should be as seen below:
    ${JAVA_EXE?} $JVMPROPERTIES -Xms512M -Xmx512M -classpath $CLASSPATH
    $IDRESOLVER $CUSTOMIZER "$@" > $LOG

  4. Run IDRESGEN again.

Cross Reference information
Segment Product Component Platform Version Edition
Commerce WebSphere Commerce Enterprise General AIX, Linux, Solaris, Windows 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4
Commerce WebSphere Commerce Business Edition General AIX, Linux, Solaris, Windows 5.6, 5.6.0.1, 5.6.0.2, 5.6.0.3, 5.6.0.4, 5.6.0.5, 5.6.0.6, 5.6.0.7, 5.6.1, 5.6.1.1, 5.6.1.2, 5.6.1.3 Business Edition
Commerce WebSphere Commerce Professional Edition General AIX, Linux, Solaris, Windows 5.6, 5.6.0.1, 5.6.0.2, 5.6.0.3, 5.6.0.4, 5.6.0.5, 5.6.0.6, 5.6.1, 5.6.1.1, 5.6.1.2, 5.6.1.3, 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4 Professional Edition
   

Document Information

Current web document: http://www.ibm.com/support/docview.wss?uid=swg21255331