<?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 Java Heap Memory constantly growing in runtime (karaf) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Java-Heap-Memory-constantly-growing-in-runtime-karaf/m-p/2291744#M143155</link>
    <description>&lt;P&gt;I am running Talend Open Studio for ESB 6.3 with the route deployed in Runtime Environment (karaf) that is triggered via cTimer and run cTalendJob every 30 seconds.&amp;nbsp;Talend Job then invokes another Talend Jobs using tRunJob.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Heap space is constantly growing, and when it reaches maximum allocated 8GB everything slows down, java is consuming 100% CPU, and I have to restart the service and start it again (wrapper is in use as windows service). It takes about 1 week to consume all 8GB.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I did memory analyze using Eclipse Memory Manager. Dump is taken just 2 days after restart, suspected problem is job started from route:&amp;nbsp;&lt;/P&gt; 
&lt;DIV&gt; 
 &lt;DIV&gt; 
  &lt;DIV class="important"&gt; 
   &lt;DIV&gt; 
    &lt;P&gt;The classloader/component &lt;STRONG&gt;"local_project.MyJob"&lt;/STRONG&gt; occupies &lt;STRONG&gt;231&amp;nbsp;335&amp;nbsp;472 (58,54&amp;nbsp;%)&lt;/STRONG&gt; bytes. The memory is accumulated in one instance of &lt;STRONG&gt;"java.util.HashMap$Node[]"&lt;/STRONG&gt; loaded by &lt;STRONG&gt;"&amp;lt;system class loader&amp;gt;"&lt;/STRONG&gt;.&lt;/P&gt; 
    &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
    &lt;P&gt;Anyone with idea why memory is not released after&amp;nbsp;cTalendJob in route is completed?&lt;/P&gt; 
    &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
    &lt;P&gt;Thank you in advance&lt;/P&gt; 
    &lt;P&gt;origami&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; 
    &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;/DIV&gt; 
  &lt;/DIV&gt; 
 &lt;/DIV&gt; 
&lt;/DIV&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:12:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T03:12:30Z</dc:date>
    <item>
      <title>Java Heap Memory constantly growing in runtime (karaf)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Java-Heap-Memory-constantly-growing-in-runtime-karaf/m-p/2291744#M143155</link>
      <description>&lt;P&gt;I am running Talend Open Studio for ESB 6.3 with the route deployed in Runtime Environment (karaf) that is triggered via cTimer and run cTalendJob every 30 seconds.&amp;nbsp;Talend Job then invokes another Talend Jobs using tRunJob.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Heap space is constantly growing, and when it reaches maximum allocated 8GB everything slows down, java is consuming 100% CPU, and I have to restart the service and start it again (wrapper is in use as windows service). It takes about 1 week to consume all 8GB.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I did memory analyze using Eclipse Memory Manager. Dump is taken just 2 days after restart, suspected problem is job started from route:&amp;nbsp;&lt;/P&gt; 
&lt;DIV&gt; 
 &lt;DIV&gt; 
  &lt;DIV class="important"&gt; 
   &lt;DIV&gt; 
    &lt;P&gt;The classloader/component &lt;STRONG&gt;"local_project.MyJob"&lt;/STRONG&gt; occupies &lt;STRONG&gt;231&amp;nbsp;335&amp;nbsp;472 (58,54&amp;nbsp;%)&lt;/STRONG&gt; bytes. The memory is accumulated in one instance of &lt;STRONG&gt;"java.util.HashMap$Node[]"&lt;/STRONG&gt; loaded by &lt;STRONG&gt;"&amp;lt;system class loader&amp;gt;"&lt;/STRONG&gt;.&lt;/P&gt; 
    &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
    &lt;P&gt;Anyone with idea why memory is not released after&amp;nbsp;cTalendJob in route is completed?&lt;/P&gt; 
    &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
    &lt;P&gt;Thank you in advance&lt;/P&gt; 
    &lt;P&gt;origami&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; 
    &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;/DIV&gt; 
  &lt;/DIV&gt; 
 &lt;/DIV&gt; 
&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Java-Heap-Memory-constantly-growing-in-runtime-karaf/m-p/2291744#M143155</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:12:30Z</dc:date>
    </item>
  </channel>
</rss>

