title: Liquibase generateChangeLog Failed: Java heap space
body: <p>When I try to generate SQL data from a DB2 database, I am getting Java Heap space issue. There are around 25 tables with approx 1000 records. </p>
  
  <p>I use the below scripts in generating the changeset data:</p>
  
  <pre><code>C:\liquibase-3.0.2-bin&gt;liquibase --driver=com.ibm.db2.jcc.DB2Driver \
  --classpath="C:\db2jcc.jar" \
  --changeLogFile="C:\Liquibase Release\liqui_MYDB_MYSCHEMA_Data.xml" \
  --url="jdbc:db2://__ip__here__:9008/MYDB" \
  --username="user" \
  --password="12345" \
  --defaultSchemaName="MYSCHEMA" \
  --diffTypes=data  \
  generateChangeLog
  </code></pre>
  
  <p>I tried to increase the memory by setting JAVA_OPTS in liquibase.bat file, but this did not yield any solution:</p>
  
  <ul>
  <li><code>set JAVA_OPTS="-XX:MaxPermSize=1024m"</code></li>
  <li><code>set JAVA_OPTS="-Xms512m -Xmx1024m"</code></li>
  </ul>