<?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: Memory leak in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Memory-leak/m-p/2260800#M41808</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Could you please give us some trouble screenshots about your issue?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jun 2018 09:26:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-04T09:26:52Z</dc:date>
    <item>
      <title>Memory leak</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Memory-leak/m-p/2260795#M41803</link>
      <description>Hello there, 
&lt;BR /&gt;I don't know if any of you encountered this but the memory usage of my jobs is increasing over time to the point where it uses more than the system allows and eventually erroring because the system is unable to allocate more memory. I believe it might be from the job setup i currently have but i would like your opinion. Here is a short description of the platform and the jobs (detailed screenshots of the jobs attached). 
&lt;BR /&gt; 
&lt;BR /&gt;All the jobs are running on 4Gb RAM unix machines.&amp;nbsp; 
&lt;BR /&gt;There are 4 jobs per machine. 
&lt;BR /&gt;The memory usage increase is about 50Mb over 4h.&amp;nbsp; 
&lt;BR /&gt;All the jobs are started using the shell script with the following memory parameters: &amp;nbsp;-Xms256M -Xmx1024M 
&lt;BR /&gt;Each scripts starts a "container" job that does the following: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;tMomConnection --- tPosgresqlConection --- tMomInput --- tRunJob --- tMomOutput --- tMomCommit&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;The job that they run (tRunJob) is as follows: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;tExtractJsonField --- tPostgresqlOutput --- tPostgresqlCommit --- tBufferOutput&lt;/PRE&gt; 
&lt;BR /&gt;Is there any reason known to you why this kind of job might have a growing memory consumption ? I have tried to find an answer by myself but i'm really stuck there, a bit of help would be so appreciated.&amp;nbsp; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDWf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143395iD48A3DC1CD2F43C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDWf.png" alt="0683p000009MDWf.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDPm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137059i5103386306C43807/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDPm.png" alt="0683p000009MDPm.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 09 Mar 2016 15:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Memory-leak/m-p/2260795#M41803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-09T15:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Memory-leak/m-p/2260796#M41804</link>
      <description>1-You are putting all the data in memory before doing the pivot. your data may exceed 4GB Ram 
&lt;BR /&gt;2-if you are probably catching a lot of errors , these are stored in memery before being sent to the parent job. why wouldn't you write the logs to a table or a file ? 
&lt;BR /&gt;as an alternative you can do an iterate flow from the parent to the child job , in that case you control the mem but your job will be a bit slower 
&lt;BR /&gt;Or 
&lt;BR /&gt;Add more memory add more 
&lt;FONT color="#222426"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Arial"&gt;-Xms in your job params&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 09 Mar 2016 18:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Memory-leak/m-p/2260796#M41804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-09T18:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Memory-leak/m-p/2260797#M41805</link>
      <description>Hi ahallam, 
&lt;BR /&gt;Thank you for your answer,&amp;nbsp; 
&lt;BR /&gt; 
&lt;BR /&gt;I don't see quite what you mean when you say i put all the data in memory before the pivot ? Would this be a problem if the data is rarely bigger than a mb ? What would be another solution ? 
&lt;BR /&gt;Every error is sent to the parent so it can send an email if the error is important and logs is otherwise. During the memory leak test i did no errors were reported so i guess no errors were caught. With the setup you see in the screenshots do you think errors could go unnoticed and generate a leak ? I will have do some tests to find out weather the errors can &amp;nbsp; 
&lt;BR /&gt;Adding more memory will not fix the fact that the memory consumption keeps growing it will eventually grow bigger than the available amount. This seems to be the standard answer for any talend performance issue, but performance is not the problem in my case it is the fact that the memory consumption never stops growing.&amp;nbsp; 
&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Mar 2016 09:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Memory-leak/m-p/2260797#M41805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-10T09:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Memory-leak/m-p/2260798#M41806</link>
      <description>Hi All, 
&lt;BR /&gt;I am facing one issue where I am not able to commit the messages from the MQ after I have received the messages from the queue.Below is the sequence of components that I am using . 
&lt;BR /&gt;tMomInput&amp;nbsp; --&amp;gt;main row --&amp;gt; tlogRow --&amp;gt; On Component Ok --&amp;gt; tMomCommit 
&lt;BR /&gt;Everytime I run the job , can see the same message again , even if I send any message ..then that message is also being received alongwith old messages 
&lt;BR /&gt; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Harish</description>
      <pubDate>Thu, 24 Mar 2016 02:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Memory-leak/m-p/2260798#M41806</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-03-24T02:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Memory-leak/m-p/2260799#M41807</link>
      <description>&lt;P&gt;In TOS 7.0 Big Data, I noticed that Eclipse in Code view was warning on tLogRow (table formatted output, use log4j) about a possible resource leak.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;java.util.Formatter formatter = new java.util.Formatter(new StringBuilder());&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;resource leak: formatter is never closed.&lt;/P&gt;
&lt;P&gt;It only complains in Mode=Table.&amp;nbsp; Basic and Vertical seem to be ok.&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 22:20:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Memory-leak/m-p/2260799#M41807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-29T22:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Memory-leak/m-p/2260800#M41808</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Could you please give us some trouble screenshots about your issue?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 09:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Memory-leak/m-p/2260800#M41808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-04T09:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Memory-leak/m-p/2260801#M41809</link>
      <description>&lt;P&gt;If&amp;nbsp; I'm reading this right, with every loop past this code, a new string formatter is being allocated. There are several posts in the forums warning about resource leaks in Formatter.&lt;/P&gt;&lt;P&gt;java.util.Formatter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Possible solutions:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.java-forums.org/new-java/82232-fomatter-print.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.java-forums.org/new-java/82232-fomatter-print.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/37748357/how-to-close-java-formatter-in-finally-or-not" target="_blank" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/37748357/how-to-close-java-formatter-in-finally-or-not&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lt0g"&gt;Screenshot from 2018-06-11 15-42-26.png&lt;/A&gt;</description>
      <pubDate>Mon, 11 Jun 2018 23:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Memory-leak/m-p/2260801#M41809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-11T23:47:18Z</dc:date>
    </item>
  </channel>
</rss>

