<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Talend migration issue Java heap space in Installing and Upgrading</title>
    <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-migration-issue-Java-heap-space/m-p/2347486#M429</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;We are migrating and upgrading from Talend 6.2 to 7.1.&lt;BR /&gt;For this, we have installed TAC 7.1+JOBSERVER+CommandLine+NEXUS + MySQL 5.7 in a new VM test server.&lt;BR /&gt;Next we have imported the old database to the new MySQL server.&lt;BR /&gt;we have increased the memory in setenv.sh&lt;/P&gt; 
&lt;PRE&gt;export JAVA_OPTS="$JAVA_OPTS -Xmx10240m -Dfile.encoding=UTF-8"&lt;/PRE&gt; 
&lt;P&gt;NB: we are using java 8&lt;BR /&gt;Then we proceed the migration process in the db config page.&lt;BR /&gt;We get the error message&lt;/P&gt; 
&lt;PRE&gt;Start Export Db.load
database schema migration failed.
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:596)
at java.lang.StringBuffer.append(StringBuffer.java:367)
at org.hibernate.type.TextType.get(TextType.java:41)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:113)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:102)
at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2031)
at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1371)
at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1299)
at org.hibernate.loader.Loader.getRow(Loader.java:1197)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:568)
at org.hibernate.loader.Loader.doQuery(Loader.java:689)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2144)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
at org.hibernate.loader.Loader.list(Loader.java:2023)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:393)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at org.eclipse.emf.teneo.hibernate.resource.HibernateResource.loadUsingTopClasses(HibernateResource.java:334)
at org.eclipse.emf.teneo.hibernate.resource.HibernateResource.loadFromStore(HibernateResource.java:322)
at org.eclipse.emf.teneo.hibernate.resource.HibernateResource.loadResource(HibernateResource.java:272)
at org.eclipse.emf.teneo.resource.StoreResource.load(StoreResource.java:277)
at org.talend.teneo.model.TalendDatastore.exportDataStore(TalendDatastore.java:357)
at org.talend.migration.TalendMigrationApplication.call(TalendMigrationApplication.java:260)
at org.talend.migration.TalendMigrationApplication.call(TalendMigrationApplication.java:56)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:748)&lt;/PRE&gt; 
&lt;P&gt;We have tried to adjust CATALINA_OPTS with these parameters in the setenv.sh file.&lt;/P&gt; 
&lt;PRE&gt;export CATALINA_OPTS="$CATALINA_OPTS -Xms512m"
export CATALINA_OPTS="$CATALINA_OPTS -Xmx8192m"
export CATALINA_OPTS="$CATALINA_OPTS -XX:MaxPermSize=256m"&lt;/PRE&gt; 
&lt;P&gt;but the same error persists&lt;BR /&gt;Any idea to get around the out memory issue&lt;BR /&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 05:02:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T05:02:38Z</dc:date>
    <item>
      <title>Talend migration issue Java heap space</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-migration-issue-Java-heap-space/m-p/2347486#M429</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;We are migrating and upgrading from Talend 6.2 to 7.1.&lt;BR /&gt;For this, we have installed TAC 7.1+JOBSERVER+CommandLine+NEXUS + MySQL 5.7 in a new VM test server.&lt;BR /&gt;Next we have imported the old database to the new MySQL server.&lt;BR /&gt;we have increased the memory in setenv.sh&lt;/P&gt; 
&lt;PRE&gt;export JAVA_OPTS="$JAVA_OPTS -Xmx10240m -Dfile.encoding=UTF-8"&lt;/PRE&gt; 
&lt;P&gt;NB: we are using java 8&lt;BR /&gt;Then we proceed the migration process in the db config page.&lt;BR /&gt;We get the error message&lt;/P&gt; 
&lt;PRE&gt;Start Export Db.load
database schema migration failed.
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:596)
at java.lang.StringBuffer.append(StringBuffer.java:367)
at org.hibernate.type.TextType.get(TextType.java:41)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:113)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:102)
at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2031)
at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1371)
at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1299)
at org.hibernate.loader.Loader.getRow(Loader.java:1197)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:568)
at org.hibernate.loader.Loader.doQuery(Loader.java:689)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2144)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
at org.hibernate.loader.Loader.list(Loader.java:2023)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:393)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at org.eclipse.emf.teneo.hibernate.resource.HibernateResource.loadUsingTopClasses(HibernateResource.java:334)
at org.eclipse.emf.teneo.hibernate.resource.HibernateResource.loadFromStore(HibernateResource.java:322)
at org.eclipse.emf.teneo.hibernate.resource.HibernateResource.loadResource(HibernateResource.java:272)
at org.eclipse.emf.teneo.resource.StoreResource.load(StoreResource.java:277)
at org.talend.teneo.model.TalendDatastore.exportDataStore(TalendDatastore.java:357)
at org.talend.migration.TalendMigrationApplication.call(TalendMigrationApplication.java:260)
at org.talend.migration.TalendMigrationApplication.call(TalendMigrationApplication.java:56)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:748)&lt;/PRE&gt; 
&lt;P&gt;We have tried to adjust CATALINA_OPTS with these parameters in the setenv.sh file.&lt;/P&gt; 
&lt;PRE&gt;export CATALINA_OPTS="$CATALINA_OPTS -Xms512m"
export CATALINA_OPTS="$CATALINA_OPTS -Xmx8192m"
export CATALINA_OPTS="$CATALINA_OPTS -XX:MaxPermSize=256m"&lt;/PRE&gt; 
&lt;P&gt;but the same error persists&lt;BR /&gt;Any idea to get around the out memory issue&lt;BR /&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-migration-issue-Java-heap-space/m-p/2347486#M429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Talend migration issue Java heap space</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-migration-issue-Java-heap-space/m-p/2347487#M430</link>
      <description>you have to focus on database schema migration failed. 
&lt;BR /&gt; 
&lt;BR /&gt;waht did you try to migrate? witch db witch schema? 
&lt;BR /&gt; 
&lt;BR /&gt;tarray is to small for your data so can you split your migration by project or .... 
&lt;BR /&gt; 
&lt;BR /&gt;good luck</description>
      <pubDate>Thu, 08 Aug 2019 10:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-migration-issue-Java-heap-space/m-p/2347487#M430</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-08-08T10:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Talend migration issue Java heap space</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-migration-issue-Java-heap-space/m-p/2347488#M431</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LKpMAAW"&gt;@fdenis&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt;you have to focus on database schema migration failed. 
 &lt;BR /&gt; 
 &lt;BR /&gt;waht did you try to migrate? witch db witch schema? 
 &lt;BR /&gt; 
 &lt;BR /&gt;tarray is to small for your data so can you split your migration by project or .... 
 &lt;BR /&gt; 
 &lt;BR /&gt;good luck 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;Hi Denis,&lt;/P&gt; 
&lt;P&gt;Thanks for your assistance,&lt;/P&gt; 
&lt;P&gt;We aim to migrate from Talend version 6.2 to talend version 7.1.&lt;/P&gt; 
&lt;P&gt;We use the migration tool of Talend TAC to migrate the MySQL TAC db (metadata).&lt;/P&gt; 
&lt;P&gt;I think that I can't split the migration.&lt;/P&gt; 
&lt;P&gt;I tried to increase the&amp;nbsp;-Xmx memeory parameter in setenv.sh (apache tomcat parameter file) but in vain.&lt;/P&gt; 
&lt;P&gt;Any suggestions ?&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 11:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-migration-issue-Java-heap-space/m-p/2347488#M431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-08T11:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Talend migration issue Java heap space</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-migration-issue-Java-heap-space/m-p/2347489#M432</link>
      <description>&lt;P&gt;This is a bug in the migration routine.&lt;/P&gt; 
&lt;P&gt;The actual bug is the weak method to read the MySQL table data without using the streaming mode. Without streaming the driver caches all the records from the query and accumulate this way a lot of memory.&lt;/P&gt; 
&lt;P&gt;You can only try to reduce the data. The table taskexecutionhistory is mostly the largest table in the TAC database and you could consider to delete entries older than a particular date.&lt;/P&gt; 
&lt;P&gt;The other way is to increase the memory as much as possible.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 11:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-migration-issue-Java-heap-space/m-p/2347489#M432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-08T11:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Talend migration issue Java heap space</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-migration-issue-Java-heap-space/m-p/2347490#M433</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LKk8AAG"&gt;@lli&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;This is a bug in the migration routine.&lt;/P&gt; 
 &lt;P&gt;The actual bug is the weak method to read the MySQL table data without using the streaming mode. Without streaming the driver caches all the records from the query and accumulate this way a lot of memory.&lt;/P&gt; 
 &lt;P&gt;You can only try to reduce the data. The table taskexecutionhistory is mostly the largest table in the TAC database and you could consider to delete entries older than a particular date.&lt;/P&gt; 
 &lt;P&gt;The other way is to increase the memory as much as possible.&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;Hi Jlolling,&lt;/P&gt; 
&lt;P&gt;Please correct me. to increase memory we should update the -Xmx value in setenv.sh of tomcat parameter file.&lt;/P&gt; 
&lt;PRE&gt;export JAVA_OPTS="$JAVA_OPTS -Xmx20g -Dfile.encoding=UTF-8"
CATALINA_OPTS="-Dbtm.root=$CATALINA_HOME -Dbitronix.tm.configuration=$CATALINA_HOME/conf/btm-config.properties -Djbpm.tsr.jndi.lookup=java:comp/env/TransactionSynchronizationRegistry -Djava.security.auth.login.config=$CATALINA_HOME/webapps/kie-drools-wb/WEB-INF/classes/login.config -Dorg.kie.demo=false -Dorg.uberfire.nio.git.daemon.port=9419 -Dorg.uberfire.nio.git.ssh.enabled=false"&lt;/PRE&gt; 
&lt;P&gt;Thanks for your support&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 12:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-migration-issue-Java-heap-space/m-p/2347490#M433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-08T12:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Talend migration issue Java heap space</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-migration-issue-Java-heap-space/m-p/2347491#M434</link>
      <description>&lt;P&gt;Thanks a lot for your help.&lt;/P&gt; 
&lt;P&gt;I increased memory and deleted entries from taskexecutionhistory table and it works.&lt;/P&gt; 
&lt;P&gt;All my respect JLolling&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 15:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-migration-issue-Java-heap-space/m-p/2347491#M434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-08T15:59:18Z</dc:date>
    </item>
  </channel>
</rss>

