# "OutOfMemoryError: Java heap space" when running with diffTypes=data

**URL:** <https://forum.liquibase.org/t/outofmemoryerror-java-heap-space-when-running-with-difftypes-data/828>\
**Category:** General Discussion\
**Created:** [October 1, 2010, 5:55pm UTC](https://forum.liquibase.org/t/outofmemoryerror-java-heap-space-when-running-with-difftypes-data/828 "2010-10-01T17:55:00Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![AR036](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@AR036](https://forum.liquibase.org/u/AR036)\
**Post date:** [May 6, 2021, 4:19pm UTC](https://forum.liquibase.org/t/outofmemoryerror-java-heap-space-when-running-with-difftypes-data/828/5 "2021-05-06T16:19:28Z")

</div>

This issue is also seen in liquibase version 4.2.0 when used with maven.

I am unable to export data even for a single table that has 10 records.

I did profiling and found there’s a memory leakage.  
Details of issue can be found below.

> [@OOM Exception, while data export using maven plugin](https://forum.liquibase.org/t/oom-exception-while-data-export-using-maven-plugin/5430):
>
> I am getting an exception while exporting the data from Oracle database using Liquibase. I have used below maven command mvn -e -X liquibase:generateChangeLog -Dliquibase.diffTypes=data -DargLine= "-Xms10G -XmX 20G -XX:-UseGCOverheadLimit" last line I can see in the log before failing is, [DEBUG] Executing with the ‘jdbc’ executor When I checked the same in Java Visual VM, I found that liquibase.change.ColumnConfig class is consuming 80% of space, this is more likely a memory leakage issue. …

---

_[View the full topic](https://forum.liquibase.org/t/outofmemoryerror-java-heap-space-when-running-with-difftypes-data/828)._
