<?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 Re: [resolved] Error: Exception in thread &amp;quot;main&amp;quot; java.lang.OutOfMemoryError: Java hea in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Error-Exception-in-thread-quot-main-quot-java-lang/m-p/2297819#M70349</link>
    <description>Talend also provides not only ETL but also ELT functionality for MSSQL. With ELT you can model a Talend job with one component per table you want to join (tELTMSSqlInput), one mapping component (tELTMSSqlMap) and one Table as output component (tELTMSSqlOutput) but the DBMS will do the join. The caveat is that the output therefore has to be a database table as well.
&lt;BR /&gt;On a sidenote: tMap has a feature to use the disk space for temporary data. This will prevent the outofmemoryerror, but it will make the job slower than doing the join completely in memory.</description>
    <pubDate>Mon, 16 Jun 2014 15:46:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-16T15:46:27Z</dc:date>
    <item>
      <title>[resolved] Error: Exception in thread "main" java.lang.OutOfMemoryError: Java hea</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Error-Exception-in-thread-quot-main-quot-java-lang/m-p/2297818#M70348</link>
      <description>Hi, 
&lt;BR /&gt;We are getting the below error while executing the Job in talend. 
&lt;BR /&gt;DataBase: MS Sql server 2012 
&lt;BR /&gt;Scenario: Let say we have a table X and then we are doing a self join on this table for approx 14 times and then pulling out the data. If we execute the full query on sql server the data comes out in 7 mins but if we break each component in talend i.e. using 14 tmssqlinput and put a join in tmap after loading the data below below error is shown and the Job fails. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Warning: to avoid a Memory heap space error the buffer of the flow has been limited to a size of 170598 , try to reduce the advanced parameter "Max buffer size" (~100000 or at least less than 170598), then if needed try to increase the JVM Xmx parameter.&lt;BR /&gt;Exception in thread "main" java.lang.OutOfMemoryError: Java heap space&lt;BR /&gt; disconnected&lt;BR /&gt; at java.lang.StringCoding$StringDecoder.decode(Unknown Source)&lt;BR /&gt; at java.lang.StringCoding.decode(Unknown Source)&lt;BR /&gt; at java.lang.StringCoding.decode(Unknown Source)&lt;BR /&gt; at java.lang.String.&amp;lt;init&amp;gt;(Unknown Source)&lt;BR /&gt; at local.j_stg_smart_version_0_1.j_stg_smart_version$1SortableRow_tMap_1_9.readData(j_stg_smart_version.java:19691)&lt;BR /&gt; at org.talend.designer.components.lookup.persistent.PersistentRowSorterIterator.findNextData(PersistentRowSorterIterator.java:421)&lt;BR /&gt; at org.talend.designer.components.lookup.persistent.PersistentRowSorterIterator.next(PersistentRowSorterIterator.java:318)&lt;BR /&gt; at local.j_stg_smart_version_0_1.j_stg_smart_version.tMSSqlInput_1Process(j_stg_smart_version.java:61629)&lt;BR /&gt; at local.j_stg_smart_version_0_1.j_stg_smart_version.runJobInTOS(j_stg_smart_version.java:15169)&lt;BR /&gt; at local.j_stg_smart_version_0_1.j_stg_smart_version.main(j_stg_smart_version.java:14203)&lt;BR /&gt;Job j_stg_smart_version ended at 19:22 16/06/2014. &lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Please let me know how to increase the size of XMS and XMX, as when we increase the size the Job fails and gives following error. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Error when running jobs :&lt;BR /&gt;"Could not create the Java virtual machine.&lt;BR /&gt;Error occurred during initialization of VM&lt;BR /&gt;Could not reserve enough space for object heap"&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Please let me know the solution of the above issues that we are facing. 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;RT</description>
      <pubDate>Mon, 16 Jun 2014 15:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Error-Exception-in-thread-quot-main-quot-java-lang/m-p/2297818#M70348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-16T15:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Error: Exception in thread "main" java.lang.OutOfMemoryError: Java hea</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Error-Exception-in-thread-quot-main-quot-java-lang/m-p/2297819#M70349</link>
      <description>Talend also provides not only ETL but also ELT functionality for MSSQL. With ELT you can model a Talend job with one component per table you want to join (tELTMSSqlInput), one mapping component (tELTMSSqlMap) and one Table as output component (tELTMSSqlOutput) but the DBMS will do the join. The caveat is that the output therefore has to be a database table as well.
&lt;BR /&gt;On a sidenote: tMap has a feature to use the disk space for temporary data. This will prevent the outofmemoryerror, but it will make the job slower than doing the join completely in memory.</description>
      <pubDate>Mon, 16 Jun 2014 15:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Error-Exception-in-thread-quot-main-quot-java-lang/m-p/2297819#M70349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-16T15:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Error: Exception in thread "main" java.lang.OutOfMemoryError: Java hea</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Error-Exception-in-thread-quot-main-quot-java-lang/m-p/2297820#M70350</link>
      <description>Hi, 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Could not reserve enough space for object heap&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;For this error, please refer to this KB article about 
&lt;A href="https://community.qlik.com/s/article/ka03p0000006Ea3AAE" target="_blank"&gt;TalendHelpCenter:Exception Could not reserve enough space for object heap&lt;/A&gt; and 
&lt;A href="https://community.qlik.com/s/article/ka03p0000006EZuAAM" target="_blank"&gt;TalendHelpCenter?Exception outOfMemory&lt;/A&gt;. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 17 Jun 2014 08:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Error-Exception-in-thread-quot-main-quot-java-lang/m-p/2297820#M70350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-17T08:33:13Z</dc:date>
    </item>
  </channel>
</rss>

