<?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>question Re: Nifi cluster CPU Utilization  / RAM always peaking . in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-cluster-CPU-Utilization-RAM-always-peaking/m-p/296306#M218181</link>
    <description>&lt;P&gt;Thanks , enabling the GIGC has helped along with reducing the Heap JVM&amp;nbsp; settings in the bootstrap conf file. Thanks again&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2020 13:12:54 GMT</pubDate>
    <dc:creator>abhinav_joshi</dc:creator>
    <dc:date>2020-05-20T13:12:54Z</dc:date>
    <item>
      <title>Nifi cluster CPU Utilization  / RAM always peaking .</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-cluster-CPU-Utilization-RAM-always-peaking/m-p/296043#M218092</link>
      <description>&lt;P&gt;Hi Team ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need some advice on how to tune our Nifi Cluster. We have a 3 Node Nifi Cluster that processes events in a real time streaming fashion which means our flows are running 24 by 7 . Each of the Nifi Linux servers have a RAM of 31GB.&amp;nbsp;We have set the JVM memory setting in the bootstrap conf file to 28 G.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#JVM memory Settings&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;java.arg.2=-Xms28G&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;java.arg.3=-Xms28G&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I run a free -h command on the servers this is what I get which clearly shows that the used Memory is 30 G.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhinav_joshi_0-1589695675728.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27496iF08F94167082DB9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhinav_joshi_0-1589695675728.png" alt="abhinav_joshi_0-1589695675728.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a result of this , we keep getting incidents raised from the Linux team stating that the Nifi servers are always hovering over the&amp;nbsp; 95 % mark and on top of that if any processor in the flow starts misbehaving , it shoots up to 100 percent and the server goes unresponsive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is , even after setting the threshold to 28 G in the bootstrap conf file , why do we still see Nifi taking up almost all the memory allocated to the server ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103"&gt;@Matt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 06:15:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-cluster-CPU-Utilization-RAM-always-peaking/m-p/296043#M218092</guid>
      <dc:creator>abhinav_joshi</dc:creator>
      <dc:date>2020-05-17T06:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi cluster CPU Utilization  / RAM always peaking .</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-cluster-CPU-Utilization-RAM-always-peaking/m-p/296048#M218097</link>
      <description>&lt;P&gt;in your nifi app log if you have "out of memory" errors it may indicate that you need to add more memory (or a possible memory leak)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;increasing heap too much will cause long GC (especially with Old Generation Objects)&lt;/P&gt;&lt;P&gt;you may need to use a more efficient GC if you use large heap size&lt;/P&gt;&lt;P&gt;in bootstrap.conf uncomment line :&amp;nbsp;&lt;SPAN class="s1"&gt;#java.arg.13=-XX:+UseG1GC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as you know,&amp;nbsp;some processors are memory intensive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;queues between processors use memory, ... until nifi.queue.swap.threshold is reached (default 20000 -&amp;gt; if reached nifi will push to disk remaining DFs&amp;nbsp; ) -&amp;gt; too much swapping in queues will realy affect performances. (memory + disk)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there are many points that can help you to determine where the PB may be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for ex. (processor 1) --&amp;gt; queue --&amp;gt; (processor 2)&lt;/P&gt;&lt;P&gt;- check queue occupation : if always full for some processors parallelize more in following processors (especially if processor a re not memory intensive, and for ex if the processor is cpu intenssive and look likes it's not ingestings quickly from queue adding more threads will help to relieve the queue ). also ading back-pressus/control-rate before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;in tha case just checking "in" and "out" of processor 2 will confirm that&amp;nbsp; (high IN and low OUT), increase nb of threads -&amp;gt; (threadsScheduling&amp;gt;&lt;SPAN&gt;Concurrent Tasks), sometimes&amp;nbsp;&lt;/SPAN&gt;tuning "&lt;SPAN&gt;Run Schedule" and "Run Duration"&lt;/SPAN&gt;&amp;nbsp;may also help depending of ingres DFs nature/size and processor type and how parallelization is impacted&lt;/P&gt;&lt;P&gt;take a look at "&lt;SPAN&gt;Total queued data" in the status bar (under components bar on top of the UI)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;keep in mind that processors may be I/O or CPU or memory intensive or all, and&amp;nbsp;parallelizing more to reduce backlogged data may solve memory PBs but it will cause more threads overuse.&lt;/P&gt;&lt;P&gt;adding more NIFI nodes will&amp;nbsp;&lt;SPAN&gt;remain the ultimate solution to increase resources&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to increase performances, you may also want to take a look at&lt;/P&gt;&lt;P&gt;nifi.provenance.repository.index.threads&lt;/P&gt;&lt;P&gt;nifi.provenance.repository.query.threads&lt;/P&gt;&lt;P&gt;nifi.provenance.repository.index.shard.size&lt;/P&gt;&lt;P&gt;using different filesystems (with good IOPS) for directories for provenance repository, content repository, flowfile repository&lt;/P&gt;&lt;P&gt;and more&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;</description>
      <pubDate>Mon, 18 May 2020 04:42:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-cluster-CPU-Utilization-RAM-always-peaking/m-p/296048#M218097</guid>
      <dc:creator>rachid-berkane</dc:creator>
      <dc:date>2020-05-18T04:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi cluster CPU Utilization  / RAM always peaking .</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-cluster-CPU-Utilization-RAM-always-peaking/m-p/296306#M218181</link>
      <description>&lt;P&gt;Thanks , enabling the GIGC has helped along with reducing the Heap JVM&amp;nbsp; settings in the bootstrap conf file. Thanks again&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 13:12:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-cluster-CPU-Utilization-RAM-always-peaking/m-p/296306#M218181</guid>
      <dc:creator>abhinav_joshi</dc:creator>
      <dc:date>2020-05-20T13:12:54Z</dc:date>
    </item>
  </channel>
</rss>

