<?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 Large FlowFile Attributes in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Large-FlowFile-Attributes/m-p/357393#M237574</link>
    <description>&lt;P&gt;Every flowfile is held in memory for as long as the flowfile is in the flow, until it reaches a DROP event[1]. This means, that if you're writing a large attribute (such as a json) this will eventually add up to a large heap usage.&lt;/P&gt;&lt;P&gt;Keep in mind that the attributes also get stored in data provenance so there's also an impact there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Biggest consequence to this a risk of NiFi going OOM, then failing to load the flowfile repository on startup.&lt;/P&gt;&lt;P&gt;If the flowfile repo is too large it can also take longer for NiFi to start up, or also go OOM on startup while trying to load the repositories.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is also touched on the Anti-patterns video[2]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[1]&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#provenance_events" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#provenance_events&lt;/A&gt;&lt;BR /&gt;[2]&lt;A href="https://www.youtube.com/watch?v=RjWstt7nRVY" target="_blank"&gt;https://www.youtube.com/watch?v=RjWstt7nRVY&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2022 18:58:51 GMT</pubDate>
    <dc:creator>bbahamondes</dc:creator>
    <dc:date>2022-11-10T18:58:51Z</dc:date>
    <item>
      <title>NiFi Large FlowFile Attributes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Large-FlowFile-Attributes/m-p/357388#M237572</link>
      <description>&lt;P&gt;I understand NiFi stores its FlowFile attributes in memory and large attributes are not recommended because it takes up space in the JVM. What I am having trouble grasping is the consequences. Can someone explain different use cases what could happen and also, how long those attributes are stored in memory for?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 17:20:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Large-FlowFile-Attributes/m-p/357388#M237572</guid>
      <dc:creator>drewski7</dc:creator>
      <dc:date>2022-11-10T17:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Large FlowFile Attributes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Large-FlowFile-Attributes/m-p/357393#M237574</link>
      <description>&lt;P&gt;Every flowfile is held in memory for as long as the flowfile is in the flow, until it reaches a DROP event[1]. This means, that if you're writing a large attribute (such as a json) this will eventually add up to a large heap usage.&lt;/P&gt;&lt;P&gt;Keep in mind that the attributes also get stored in data provenance so there's also an impact there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Biggest consequence to this a risk of NiFi going OOM, then failing to load the flowfile repository on startup.&lt;/P&gt;&lt;P&gt;If the flowfile repo is too large it can also take longer for NiFi to start up, or also go OOM on startup while trying to load the repositories.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is also touched on the Anti-patterns video[2]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[1]&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#provenance_events" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#provenance_events&lt;/A&gt;&lt;BR /&gt;[2]&lt;A href="https://www.youtube.com/watch?v=RjWstt7nRVY" target="_blank"&gt;https://www.youtube.com/watch?v=RjWstt7nRVY&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 18:58:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Large-FlowFile-Attributes/m-p/357393#M237574</guid>
      <dc:creator>bbahamondes</dc:creator>
      <dc:date>2022-11-10T18:58:51Z</dc:date>
    </item>
  </channel>
</rss>

