<?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][Oracle][DBConnectionPool] NiFi opens sessions but does not close them, leaving them inactive in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Oracle-DBConnectionPool-NiFi-opens-sessions-but-does/m-p/366897#M239703</link>
    <description>&lt;P&gt;hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104216"&gt;@Satya1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I did. Eventually i was able to identify what caused the issue. I am not 100% sure that this is the best fix for the problem, but in order to solve my issue I have modified the following two properties within my &lt;STRONG&gt;DBCPConnectionPool Controller Service&lt;/STRONG&gt;:&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Max Total Connections&lt;/STRONG&gt;&lt;/EM&gt;: I have reduced the value because I saw that I did not require so many connections.&lt;BR /&gt;previously: 51&lt;BR /&gt;now: 10&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Time Between Eviction Runs:&lt;/EM&gt;&amp;nbsp;&lt;/STRONG&gt;- I have modified the value from a negative value to a positive value.&lt;BR /&gt;&lt;EM&gt;previously: -1&lt;/EM&gt; (meaning no idle connection evictor thread will be run)&lt;BR /&gt;&lt;EM&gt;now: 1440000 millis&lt;/EM&gt; (meaning that my sessions will get evicted after aprox. 25 mins)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this helped you as well &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2023 17:22:10 GMT</pubDate>
    <dc:creator>cotopaul</dc:creator>
    <dc:date>2023-03-24T17:22:10Z</dc:date>
    <item>
      <title>[NiFi][Oracle][DBConnectionPool] NiFi opens sessions but does not close them, leaving them inactive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Oracle-DBConnectionPool-NiFi-opens-sessions-but-does/m-p/363922#M239084</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to solve a strange behavior of NiFi but can't really figure it out.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My flow consists of a &lt;STRONG&gt;GenerateTableFetch&lt;/STRONG&gt; (which gets executed once per day), a &lt;STRONG&gt;ExecuteSQLRecord&lt;/STRONG&gt; (which gets executed once it receives the files from GenerateTableFetch) and finally an &lt;STRONG&gt;PutS3Bucket&lt;/STRONG&gt;.&lt;BR /&gt;Now, both the &lt;STRONG&gt;GenerateTableFetch&lt;/STRONG&gt; and the &lt;STRONG&gt;ExecuteSQLRecord&lt;/STRONG&gt; are using the same Controller Service, a &lt;STRONG&gt;DBConnectionPool&lt;/STRONG&gt; which connects to an Oracle Database.&lt;BR /&gt;In the previous days I have noticed that I get &lt;STRONG&gt;plenty of sessions&lt;/STRONG&gt; from NiFi (which is ok) but these sessions &lt;STRONG&gt;never get killed/terminated and they remain inactive&lt;/STRONG&gt;. I am using the following configurations within my DBConnectionPool Service:&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;Max Wait Time&lt;/STRONG&gt;: 500 millis&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Max Total Connections&lt;/STRONG&gt;: 51&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Minimum Idle Connections:&lt;/STRONG&gt; 0&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Max Idle Connections&lt;/STRONG&gt;: 5&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Max Connection Lifetime:&lt;/STRONG&gt; -1&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Time Between Eviction Runs&lt;/STRONG&gt;: -1&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Minimum Evictable Idle Time&lt;/STRONG&gt;: 30 mins&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Soft Minimum Evictable Idle Time&lt;/STRONG&gt;: -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Unfortunately I was not able to find any information in the documentation (or maybe I did not fully understand it) therefor here is my question:&lt;BR /&gt;How can I make sure that all the sessions are create are getting closed once my flow has ended? I mean get killed and not set to inactive.&lt;BR /&gt;&lt;BR /&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 09:15:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Oracle-DBConnectionPool-NiFi-opens-sessions-but-does/m-p/363922#M239084</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-02-16T09:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: [NiFi][Oracle][DBConnectionPool] NiFi opens sessions but does not close them, leaving them inactive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Oracle-DBConnectionPool-NiFi-opens-sessions-but-does/m-p/366896#M239702</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;Am also facing same issue,Have you got any solutions here&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 17:14:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Oracle-DBConnectionPool-NiFi-opens-sessions-but-does/m-p/366896#M239702</guid>
      <dc:creator>Satya1</dc:creator>
      <dc:date>2023-03-24T17:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: [NiFi][Oracle][DBConnectionPool] NiFi opens sessions but does not close them, leaving them inactive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Oracle-DBConnectionPool-NiFi-opens-sessions-but-does/m-p/366897#M239703</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104216"&gt;@Satya1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I did. Eventually i was able to identify what caused the issue. I am not 100% sure that this is the best fix for the problem, but in order to solve my issue I have modified the following two properties within my &lt;STRONG&gt;DBCPConnectionPool Controller Service&lt;/STRONG&gt;:&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Max Total Connections&lt;/STRONG&gt;&lt;/EM&gt;: I have reduced the value because I saw that I did not require so many connections.&lt;BR /&gt;previously: 51&lt;BR /&gt;now: 10&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Time Between Eviction Runs:&lt;/EM&gt;&amp;nbsp;&lt;/STRONG&gt;- I have modified the value from a negative value to a positive value.&lt;BR /&gt;&lt;EM&gt;previously: -1&lt;/EM&gt; (meaning no idle connection evictor thread will be run)&lt;BR /&gt;&lt;EM&gt;now: 1440000 millis&lt;/EM&gt; (meaning that my sessions will get evicted after aprox. 25 mins)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this helped you as well &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 17:22:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Oracle-DBConnectionPool-NiFi-opens-sessions-but-does/m-p/366897#M239703</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-03-24T17:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: [NiFi][Oracle][DBConnectionPool] NiFi opens sessions but does not close them, leaving them inactive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Oracle-DBConnectionPool-NiFi-opens-sessions-but-does/m-p/366898#M239704</link>
      <description>&lt;P&gt;No,have confgured the&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Time Between Eviction Runs:&lt;/EM&gt;&amp;nbsp;positive value&lt;/STRONG&gt;&lt;SPAN&gt;- (20 mins) but still seeing the inactive sessions in the database.&lt;BR /&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103151"&gt;@cotopaul&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Are those inactive session terminated after your flow is completed or after 25 mins&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 17:30:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Oracle-DBConnectionPool-NiFi-opens-sessions-but-does/m-p/366898#M239704</guid>
      <dc:creator>Satya1</dc:creator>
      <dc:date>2023-03-24T17:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: [NiFi][Oracle][DBConnectionPool] NiFi opens sessions but does not close them, leaving them inactive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Oracle-DBConnectionPool-NiFi-opens-sessions-but-does/m-p/366899#M239705</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104216"&gt;@Satya1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The inactive sessions are getting terminated after 25 mins after the extraction is complete. For example, if you extraction takes 25 minutes to load the data from your database and into the flowfile (no matter the file type), you will keep on seeing those inactive sessions for another 25 more minutes, meaning that they will be completely gone after 50 mins, since you started your flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want, you can reduce the time to a lower value, as 25 is a bit big for most cases. You can modify it into 5 minutes and test it for yourself. I did it and my flow took 2 minutes, the sessions got evicted after 5 and in 7 minutes all the sessions were gone.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 17:35:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Oracle-DBConnectionPool-NiFi-opens-sessions-but-does/m-p/366899#M239705</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-03-24T17:35:09Z</dc:date>
    </item>
  </channel>
</rss>

