<?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 High CPU usage when running ExecuteSQL in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/High-CPU-usage-when-running-ExecuteSQL/m-p/386296#M245987</link>
    <description>&lt;P&gt;I have Nifi 1.25 on Ubuntu EC2 (&lt;SPAN&gt;m6i.2xlarge) = (8CPU/32GB RAM)&lt;BR /&gt;Bootstrap.conf was set like the following:&lt;BR /&gt;java.arg.2=-Xms2g&lt;BR /&gt;java.arg.3=-Xmx24g&lt;BR /&gt;java.arg.13=-XX:+UseG1GC &amp;lt;not sure if needed even&amp;gt;&lt;BR /&gt;&lt;BR /&gt;ExecuteSQL is set like the following:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LiranJP_0-1712584357473.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40303i79C670DD47E25695/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LiranJP_0-1712584357473.png" alt="LiranJP_0-1712584357473.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LiranJP_1-1712584491417.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40304i1BE3956AD6EDD82B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LiranJP_1-1712584491417.png" alt="LiranJP_1-1712584491417.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The flow is getting about 50-60 tables from mySQL and start creating flow files from them , upload to S3 and then copy into Redshift.&lt;BR /&gt;Seems like the ExecuteSQL is consuming high CPU &amp;amp; RAM.&amp;nbsp;&lt;BR /&gt;The&amp;nbsp;&lt;SPAN&gt;java.arg.3=-Xmx24g is the upper limit for the RAM?&lt;BR /&gt;How can I control the CPU?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2024 13:55:23 GMT</pubDate>
    <dc:creator>LiranJP</dc:creator>
    <dc:date>2024-04-08T13:55:23Z</dc:date>
    <item>
      <title>High CPU usage when running ExecuteSQL</title>
      <link>https://community.cloudera.com/t5/Support-Questions/High-CPU-usage-when-running-ExecuteSQL/m-p/386296#M245987</link>
      <description>&lt;P&gt;I have Nifi 1.25 on Ubuntu EC2 (&lt;SPAN&gt;m6i.2xlarge) = (8CPU/32GB RAM)&lt;BR /&gt;Bootstrap.conf was set like the following:&lt;BR /&gt;java.arg.2=-Xms2g&lt;BR /&gt;java.arg.3=-Xmx24g&lt;BR /&gt;java.arg.13=-XX:+UseG1GC &amp;lt;not sure if needed even&amp;gt;&lt;BR /&gt;&lt;BR /&gt;ExecuteSQL is set like the following:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LiranJP_0-1712584357473.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40303i79C670DD47E25695/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LiranJP_0-1712584357473.png" alt="LiranJP_0-1712584357473.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LiranJP_1-1712584491417.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40304i1BE3956AD6EDD82B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LiranJP_1-1712584491417.png" alt="LiranJP_1-1712584491417.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The flow is getting about 50-60 tables from mySQL and start creating flow files from them , upload to S3 and then copy into Redshift.&lt;BR /&gt;Seems like the ExecuteSQL is consuming high CPU &amp;amp; RAM.&amp;nbsp;&lt;BR /&gt;The&amp;nbsp;&lt;SPAN&gt;java.arg.3=-Xmx24g is the upper limit for the RAM?&lt;BR /&gt;How can I control the CPU?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 13:55:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/High-CPU-usage-when-running-ExecuteSQL/m-p/386296#M245987</guid>
      <dc:creator>LiranJP</dc:creator>
      <dc:date>2024-04-08T13:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU usage when running ExecuteSQL</title>
      <link>https://community.cloudera.com/t5/Support-Questions/High-CPU-usage-when-running-ExecuteSQL/m-p/386571#M246079</link>
      <description>&lt;P&gt;Load the data into NiFi in an iterative manner, for this you can evaluate&amp;nbsp;&lt;SPAN&gt;GenerateTableFetch --&amp;gt;ExecuteSQL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Loading a large table in one go with&amp;nbsp;ExecuteSQL could result in high heap usage.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;on the other side, CPU usage is high due to running too many parallelism by increasing the processor concurrent task from default 1 to 8 which is not required.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 13:20:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/High-CPU-usage-when-running-ExecuteSQL/m-p/386571#M246079</guid>
      <dc:creator>ckumar</dc:creator>
      <dc:date>2024-04-15T13:20:23Z</dc:date>
    </item>
  </channel>
</rss>

