<?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>topic Re: JDBC driver settings when building a custom extension in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/JDBC-driver-settings-when-building-a-custom-extension/m-p/275229#M6337</link>
    <description>&lt;P&gt;Hey Adrian&lt;/P&gt;&lt;P&gt;I recently faced the same issue while creating an SQL oracle custom extension. Definitely agreed, we need more visibility over how the extensions are configured and way to configure the same.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akash&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2025 03:22:49 GMT</pubDate>
    <dc:creator>Sustenance</dc:creator>
    <dc:date>2025-04-16T03:22:49Z</dc:date>
    <item>
      <title>JDBC driver settings when building a custom extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/JDBC-driver-settings-when-building-a-custom-extension/m-p/273579#M6080</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We have recently built a custom extension to fetch data from a SQL data source.&lt;/P&gt;
&lt;P&gt;Our underlying data source is an Exasol cluster and in order to establish the connection we have enabled the &lt;A href="https://docs.exasol.com/db/latest/connect_exasol/drivers/jdbc.htm" target="_self"&gt;JDBC driver&lt;/A&gt; of the vendor according to the official instructions documented &lt;A href="https://docs.dynatrace.com/docs/ingest-from/extensions20/data-sources/sql/jdbc-monitoring#upload" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Initially everything went according to plan, the data was fetched every minute so we started expanding the number of jdbcRemote endpoints to have complete coverage according to our needs.&lt;/P&gt;
&lt;P&gt;After a few days of observing we noticed that from time to time some endpoints are failing randomly with the following error message:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[out]org.apache.tomcat.jdbc.pool.PoolExhaustedException: [pool-4-thread-1] Timeout: Pool empty. Unable to fetch a connection in 30 seconds, none available[size:1; busy:1; idle:0; lastwait:30000].&lt;/LI-CODE&gt;
&lt;P&gt;This was not a limitation on the data source side as the connection pool there is way larger and we were also not even seeing an attempt to connect. We quickly concluded that the default connection pool size of our JDBC driver is actually &lt;STRONG&gt;64&lt;/STRONG&gt;, so what mechanism in the extension decides to overwrite the default connection pool size and "shrink" it to 1 (as seen in the message above)?&lt;/P&gt;
&lt;P&gt;Furthermore, this message was randomly affecting endpoints that were grouped under the same monitoring configuration and "evicting" the endpoint to its own monitoring configuration remediated the issue.&lt;/P&gt;
&lt;P&gt;We need more details around how the Extension is building a JDBC connector as right now there is nothing in the extension log that hints to how to connector is initialised.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 08:17:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/JDBC-driver-settings-when-building-a-custom-extension/m-p/273579#M6080</guid>
      <dc:creator>Adrian_I</dc:creator>
      <dc:date>2025-03-27T08:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC driver settings when building a custom extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/JDBC-driver-settings-when-building-a-custom-extension/m-p/275229#M6337</link>
      <description>&lt;P&gt;Hey Adrian&lt;/P&gt;&lt;P&gt;I recently faced the same issue while creating an SQL oracle custom extension. Definitely agreed, we need more visibility over how the extensions are configured and way to configure the same.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akash&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 03:22:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/JDBC-driver-settings-when-building-a-custom-extension/m-p/275229#M6337</guid>
      <dc:creator>Sustenance</dc:creator>
      <dc:date>2025-04-16T03:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC driver settings when building a custom extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/JDBC-driver-settings-when-building-a-custom-extension/m-p/276035#M6353</link>
      <description>&lt;P&gt;Small update on this request.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've eventually opened a support ticket where I got recommended to explore introducing custom timeouts:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/ingest-from/extensions20/data-sources/sql/sql-reference#timeouts" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/ingest-from/extensions20/data-sources/sql/sql-reference#timeouts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;According to the document above doing so should achieve parallel queries, haven't tried it out yet, but it looks promising. I am leaving this update here for reference if someone else faces the same challenges.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Later edit:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Introducing custom timeouts will result in parallel queries. It's not the most flexible option, but at least it can be used as a workaround for the initial problem.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 11:42:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/JDBC-driver-settings-when-building-a-custom-extension/m-p/276035#M6353</guid>
      <dc:creator>Adrian_I</dc:creator>
      <dc:date>2025-05-13T11:42:33Z</dc:date>
    </item>
  </channel>
</rss>

