<?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: Exception in thread &amp;quot;main&amp;quot; java.lang.OutOfMemoryError: Java heap space in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang-OutOfMemoryError/m-p/2291517#M64693</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you read the data from the database, it is sent to ram memory. So if you don't have enough capacity on your pc, it's normal to have this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However here is a small solution: In Advanced Setting of the Run view, you increase the memory allocated to the job (Xmx). by default it's 500 MB so, it's up to you to see what interests you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if you do any transformation in the tMap, you can store the data in the hard disk instead of the ram, in the adanced setting of the tMap, you have an option to choose a temporary disk. if you don't do anything with the tMap, you can delete it.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2020 10:26:46 GMT</pubDate>
    <dc:creator>JohnRMK</dc:creator>
    <dc:date>2020-09-10T10:26:46Z</dc:date>
    <item>
      <title>Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang-OutOfMemoryError/m-p/2291516#M64692</link>
      <description>&lt;P&gt;Hi Team, &lt;/P&gt;&lt;P&gt;I getting the following error for a job. Attached is the job  &lt;/P&gt;&lt;P&gt;tMSSQLINPUT -&amp;gt; tmap -&amp;gt; tlogrow &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table rows - 28595 &lt;/P&gt;&lt;P&gt;Table columns - 246 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please suggest solution. Tried lot of google and talend community but didn't work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error : Message &lt;/P&gt;&lt;P&gt;Exception in thread "main" java.lang.OutOfMemoryError: Java heap space&lt;/P&gt;&lt;P&gt;at java.util.Arrays.copyOf(Unknown Source)&lt;/P&gt;&lt;P&gt;	at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)&lt;/P&gt;&lt;P&gt;	at java.lang.AbstractStringBuilder.append(Unknown Source)&lt;/P&gt;&lt;P&gt;	at java.lang.StringBuilder.append(Unknown Source)&lt;/P&gt;&lt;P&gt;	at customer_hub_integration.test_account_0_1.test_account$1Util_tLogRow_1.format(test_account.java:8062)&lt;/P&gt;&lt;P&gt;	at customer_hub_integration.test_account_0_1.test_account.tDBInput_1Process(test_account.java:16018)&lt;/P&gt;&lt;P&gt;	at customer_hub_integration.test_account_0_1.test_account.runJobInTOS(test_account.java:16307)&lt;/P&gt;&lt;P&gt;	at customer_hub_integration.test_account_0_1.test_account.main(test_account.java:16138)&lt;/P&gt;&lt;P&gt;[statistics] disconnected&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 09:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang-OutOfMemoryError/m-p/2291516#M64692</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2020-09-10T09:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang-OutOfMemoryError/m-p/2291517#M64693</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you read the data from the database, it is sent to ram memory. So if you don't have enough capacity on your pc, it's normal to have this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However here is a small solution: In Advanced Setting of the Run view, you increase the memory allocated to the job (Xmx). by default it's 500 MB so, it's up to you to see what interests you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if you do any transformation in the tMap, you can store the data in the hard disk instead of the ram, in the adanced setting of the tMap, you have an option to choose a temporary disk. if you don't do anything with the tMap, you can delete it.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 10:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang-OutOfMemoryError/m-p/2291517#M64693</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-09-10T10:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang-OutOfMemoryError/m-p/2291518#M64694</link>
      <description>&lt;P&gt;1.  Ok Let me give try to tmap temp disk write.&lt;/P&gt;&lt;P&gt;2. i have 16 GB RAM &lt;/P&gt;&lt;P&gt;3. Talend is showing to occupy 2.5 GB in task manger  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 11:05:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang-OutOfMemoryError/m-p/2291518#M64694</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2020-09-10T11:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang-OutOfMemoryError/m-p/2291519#M64695</link>
      <description>&lt;P&gt;I am getting the same error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 11:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang-OutOfMemoryError/m-p/2291519#M64695</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2020-09-10T11:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang-OutOfMemoryError/m-p/2291520#M64696</link>
      <description>&lt;P&gt;if i read 1000 rows its working &lt;/P&gt;&lt;P&gt;How can read 28595 rows  in multiples of 1000 rows. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 11:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang-OutOfMemoryError/m-p/2291520#M64696</guid>
      <dc:creator>amtkmr1990</dc:creator>
      <dc:date>2020-09-10T11:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang-OutOfMemoryError/m-p/2291521#M64697</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The root issue in this error is that not enough heap is being given. You need to adjust the heap size for the job to a larger size.&lt;/P&gt;&lt;P&gt;Here is a community knowledge: &lt;A href="https://community.talend.com/s/article/OutOfMemory-Exception-WmtmQ" alt="https://community.talend.com/s/article/OutOfMemory-Exception-WmtmQ" target="_blank"&gt;https://community.talend.com/s/article/OutOfMemory-Exception-WmtmQ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Let us know if it helps.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 08:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang-OutOfMemoryError/m-p/2291521#M64697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-11T08:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang-OutOfMemoryError/m-p/2291522#M64698</link>
      <description>&lt;P&gt;Usually, this error is thrown when the &lt;A href="http://net-informations.com/java/intro/jvm.htm" alt="http://net-informations.com/java/intro/jvm.htm" target="_blank"&gt;Java Virtual Machine&lt;/A&gt; cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore you pretty much have two options:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Increase the default memory your program is allowed to use using the -Xmx option (for instance for 1024 MB: -Xmx1024m)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Modify your program so that it needs less memory, using less big data structures and getting rid of objects that are not any more used at some point in your program&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Increasing the heap sizeis a bad solution, 100% temporary. It will crash again in somewhere else. To avoid these issues, write high performance code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use local variables wherever possible.&lt;/LI&gt;&lt;LI&gt;Make sure you select the correct object (EX: Selection between String, StringBuffer and StringBuilder)&lt;/LI&gt;&lt;LI&gt;Use a good code system for your program(EX: Using static variables VS non static variables)&lt;/LI&gt;&lt;LI&gt;Other stuff which could work on your code.&lt;/LI&gt;&lt;LI&gt;Try to move with Multy Threading&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 07:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang-OutOfMemoryError/m-p/2291522#M64698</guid>
      <dc:creator>harvyjackk</dc:creator>
      <dc:date>2022-02-11T07:28:04Z</dc:date>
    </item>
  </channel>
</rss>

