<?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: 503 error while copying/versioning big process groups in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/503-error-while-copying-versioning-big-process-groups/m-p/413980#M254310</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply. What I meant is that the UI gets freezed for that period of time.&lt;BR /&gt;&lt;BR /&gt;1 and 2. I had this issue in a Nifi 1.19 cluster and a Nifi 1.19 standalone.&lt;/P&gt;&lt;P&gt;3. The nifi-boostrap.log does not get updates when this happens, so i think it does not.&lt;/P&gt;&lt;P&gt;4. Reading the standalone's nifi-app.log, I found some SocketTimeoutExceptions at the time of the issue. I did not find out of memory exceptions.&lt;/P&gt;&lt;P&gt;5. No, stop-the-world times are no longer than 100-200 milliseconds.&lt;/P&gt;&lt;P&gt;6. They have from 300 to 1000 processors.&lt;/P&gt;</description>
    <pubDate>Fri, 01 May 2026 12:39:44 GMT</pubDate>
    <dc:creator>fnimi</dc:creator>
    <dc:date>2026-05-01T12:39:44Z</dc:date>
    <item>
      <title>503 error while copying/versioning big process groups</title>
      <link>https://community.cloudera.com/t5/Support-Questions/503-error-while-copying-versioning-big-process-groups/m-p/413955#M254290</link>
      <description>&lt;P&gt;Hello, everytime I make a new version of or copy 4-5 big process groups, the Nifi UI start throwing 503 errors and sometimes It dies for 15-30 minutes. I tried changing the Garbage Collector algorythm but it did not work out, and I know that adding up memory heap will be useless. What else can I do? Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2026 17:28:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/503-error-while-copying-versioning-big-process-groups/m-p/413955#M254290</guid>
      <dc:creator>fnimi</dc:creator>
      <dc:date>2026-04-27T17:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: 503 error while copying/versioning big process groups</title>
      <link>https://community.cloudera.com/t5/Support-Questions/503-error-while-copying-versioning-big-process-groups/m-p/413967#M254302</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/151669"&gt;@fnimi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;I am not clear on "&lt;SPAN&gt;It dies for 15-30 minutes".&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;What version of Apache NiFi are you using?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Is this a standalone instance of NiFi or a multi-node NiFi Cluster?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Does the NiFi child process die and get launched agin by the NiFi bootstrap process?&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Any exceptions thrown in the nifi-app.log or nifi-bootstrap.log (timeouts, OutOfMemory(OOM), etc)?&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Are you seeing a long stop-the-world Java Garbage Collection event?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;How large are these "big" process groups?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;The more detail you can provide, the better chance a community member will be able to provide some suggestions.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2026 17:33:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/503-error-while-copying-versioning-big-process-groups/m-p/413967#M254302</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2026-04-28T17:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: 503 error while copying/versioning big process groups</title>
      <link>https://community.cloudera.com/t5/Support-Questions/503-error-while-copying-versioning-big-process-groups/m-p/413980#M254310</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply. What I meant is that the UI gets freezed for that period of time.&lt;BR /&gt;&lt;BR /&gt;1 and 2. I had this issue in a Nifi 1.19 cluster and a Nifi 1.19 standalone.&lt;/P&gt;&lt;P&gt;3. The nifi-boostrap.log does not get updates when this happens, so i think it does not.&lt;/P&gt;&lt;P&gt;4. Reading the standalone's nifi-app.log, I found some SocketTimeoutExceptions at the time of the issue. I did not find out of memory exceptions.&lt;/P&gt;&lt;P&gt;5. No, stop-the-world times are no longer than 100-200 milliseconds.&lt;/P&gt;&lt;P&gt;6. They have from 300 to 1000 processors.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 12:39:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/503-error-while-copying-versioning-big-process-groups/m-p/413980#M254310</guid>
      <dc:creator>fnimi</dc:creator>
      <dc:date>2026-05-01T12:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: 503 error while copying/versioning big process groups</title>
      <link>https://community.cloudera.com/t5/Support-Questions/503-error-while-copying-versioning-big-process-groups/m-p/413981#M254311</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/151669"&gt;@fnimi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;When you say "&lt;SPAN&gt;make a new version of", are you referring to committing a new version of a version controlled process group to the NiFi-Registry service or creating a new NiFi template?&amp;nbsp; NiFi templates consume a lot of heap memory which is the leading reason why they were deprecated in Apache NiFi 1.x and fully removed in Apache NiFI 2.x major releases.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Do each of these copied 4-5 big process groups contain 300 - 1000 processors or 300 - 1000 total.&amp;nbsp; &amp;nbsp;When you copy components on the canvas you are creating a flow snippet that contains all the components, configurations, connections, etc of what you have selected.&amp;nbsp; That snippet is held in heap memory and when you paste it, it creates a request that contains that large snippet that must be replicated to all the nodes in a NiFi cluster.&amp;nbsp; Also when you paste NiFi must iterate through all the components in that snippet to calculate and set new x,y coordinates, component UUIDs, remap connections because of UUID changes and instantiate those components on the canvas.&amp;nbsp;Also keep in mind that even after all components are added from the paste operation they are then passed along to the validator to check if each has a valid configuration and referenced services are good state and enabled. This operation creates an exclusive write lock until the above completes.&amp;nbsp; Meanwhile, your browser (and the browsers of any other users that may be open to this NiFi) continues to fire status update requests every so many seconds. These read requests are blocked waiting for the Write Lock to release.&amp;nbsp; The Jetty service has a thread pool where these read request start stacking up until no additional can be accepted and thus 503 can be encountered.&amp;nbsp; Also things like CPU thread concurrency, disk I/O, etc utilized during this large request ma be under contention.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Instantiating flows from NiFi-Registry or via flow definitions imports is going to use more efficient methods then an in browser copy and paste.&amp;nbsp; I would avoid copy and paste of large flows and focus on copy paste of smaller snippets at a time.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also want to note that Apache NiFi 1.19 is more then 3.5 years old and to keep up with critical CVEs and bug fixes you just plan regular upgrades to newer versions. The Apache NiFi 1.x major release branch is end of life and no longer receiving any new updates, fixes, or&amp;nbsp; security CVE changes in Apache.&amp;nbsp; The new Apache NIFi 2 major release branch is what is being supported in Apache now.&lt;BR /&gt;&lt;BR /&gt;Hope this helps explain your observations:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 14:24:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/503-error-while-copying-versioning-big-process-groups/m-p/413981#M254311</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2026-05-01T14:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: 503 error while copying/versioning big process groups</title>
      <link>https://community.cloudera.com/t5/Support-Questions/503-error-while-copying-versioning-big-process-groups/m-p/413983#M254313</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;I am referring to commiting a new version&amp;nbsp;&lt;SPAN&gt;of a version controlled process group to NiFi-Registry, and each process group contains 300-1000 processors. Does this exclusive write lock also work when versioning using Nifi Registry?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We are planning to move to Nifi 1.28 before upgrading to Nifi 2. Do you think it will be possible to keep versioning process groups of this size without having this issue?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 14:54:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/503-error-while-copying-versioning-big-process-groups/m-p/413983#M254313</guid>
      <dc:creator>fnimi</dc:creator>
      <dc:date>2026-05-01T14:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: 503 error while copying/versioning big process groups</title>
      <link>https://community.cloudera.com/t5/Support-Questions/503-error-while-copying-versioning-big-process-groups/m-p/413984#M254314</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/151669"&gt;@fnimi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Yes a write lock is still created&amp;nbsp; when you use version control. So you'll still deal with read request stacking up until all jetty threads are full resulting in the 503.&amp;nbsp; The large commit has to be completed successfully before status within NiFi Ui can reflect the current version control status on the Process group.&amp;nbsp; Version controlled process groups also remove parses the json to remove all sensitive properties.&amp;nbsp; Version controlled dataflows can also contain parameter contexts if used and controller services they utilize making them even larger.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having 1000+ components in a single version-controlled Process Group is considered an&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="font-semibold"&gt;anti-pattern&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;in NiFi. It makes version control, deployments, and UI responsiveness incredibly slow.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Version controlled flow are meant for easy reuse or re-deployment to other NiFi clusters.&amp;nbsp; Version controlling such large flows reduce the reusability of them.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="font-semibold"&gt;Modularize your Flows (Nested Versioning)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Instead of versioning the top-level Process Group that contains everything, break your flow into smaller, logical, nested Process Groups (e.g., 50–100 components each).&amp;nbsp; Avoid versioning a PG&amp;nbsp; within a PG that is already version controlled.&lt;/P&gt;&lt;UL class="list-inside list-disc whitespace-normal [li_&amp;amp;]:pl-6"&gt;&lt;LI&gt;You can version control these smaller Process Groups individually.&lt;/LI&gt;&lt;LI&gt;This drastically reduces the serialization time, lock duration, and payload size sent to the Registry.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 17:15:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/503-error-while-copying-versioning-big-process-groups/m-p/413984#M254314</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2026-05-01T17:15:27Z</dc:date>
    </item>
  </channel>
</rss>

