<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-2184 "java.sql.SQLException: Unable to obtain a connection within configured timeout" observed in application server log</title><link>https://community.appian.com/support/w/kb/2351/kb-2184-java-sql-sqlexception-unable-to-obtain-a-connection-within-configured-timeout-observed-in-application-server-log</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-2184 "java.sql.SQLException: Unable to obtain a connection within configured timeout" observed in application server log</title><link>https://community.appian.com/support/w/kb/2351/kb-2184-java-sql-sqlexception-unable-to-obtain-a-connection-within-configured-timeout-observed-in-application-server-log</link><pubDate>Thu, 06 May 2021 22:34:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af6d39fa-9bd3-4118-8cd2-223cb385e579</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/2351/kb-2184-java-sql-sqlexception-unable-to-obtain-a-connection-within-configured-timeout-observed-in-application-server-log#comments</comments><description>Current Revision posted to Appian Knowledge Base by Parmida Borhani on 5/6/2021 10:34:54 PM&lt;br /&gt;
&lt;div class="content"&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following exception appears in the &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt; file:&lt;/p&gt;
&lt;pre&gt;Caused by: java.sql.SQLException: Unable to obtain a connection within configured timeout&lt;/pre&gt;
&lt;p&gt;In cases where this exception is encountered regularly,&amp;nbsp;application features that interact with databases may experience degraded performance. This&amp;nbsp;can manifest in a number of ways,&amp;nbsp;ranging from&amp;nbsp;user-facing application slowness&amp;nbsp;to frequently failing process model execution.&lt;/p&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The application server was unable to establish a connection to the business database within the default 10 second timeout. The timeout is in place to prevent the application from locking up if a large number of threads are blocked waiting for a database connection to initialize. In many cases, this error message is a symptom of an unreliable network configuration between the web server and the database, rather than an issue localized to either of those components.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
Work with your database administrators, network operations team, and/or Appian Support to verify the reliability of the network connection between the application server and the database instance.
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;In cases when the network conditions or database responsiveness cannot be improved, increase or disable the connection timeout properties.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;DISCLAIMER:&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;&amp;nbsp;These properties only affect the way the application server reacts to slow connection attempts. Without addressing the underlying issues&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;, modifications to these values may degrade application performance.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-family:inherit;"&gt;Self-Managed&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Modify or add the following properties to the &lt;strong&gt;custom.properties&lt;/strong&gt; file:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;conf.data.datasources.internal.CONNECTION_TIMEOUT_MS=&amp;lt;time in milliseconds&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;conf.data.datasources.internal.connectionTimeout.enabled=false&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;strong&gt;Notes:&lt;/strong&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li class="content"&gt;There is no &amp;quot;correct&amp;quot; value for the &lt;code&gt;CONNECTION_TIMEOUT_MS&lt;/code&gt; property. Choose a value based on tolerance for latency. The default value is &lt;code&gt;10000&lt;/code&gt;.&lt;/li&gt;
&lt;li class="content"&gt;If the &lt;span&gt;&lt;code&gt;connectionTimeout.enabled&lt;/code&gt;&amp;nbsp;&lt;/span&gt;property is set to &lt;code&gt;false&lt;/code&gt;, the timeout above is ignored. The default value is &lt;code&gt;true&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Cloud&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support to request a change to these values. A site restart will be required to apply the configuration changes.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: May 2021&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server, timeout, network, connection&lt;/div&gt;
</description></item><item><title>DRAFT SP-6217: "java.sql.SQLException: Unable to obtain a connection within configured timeout"</title><link>https://community.appian.com/support/w/kb/2351/kb-2184-java-sql-sqlexception-unable-to-obtain-a-connection-within-configured-timeout-observed-in-application-server-log/revision/5</link><pubDate>Thu, 06 May 2021 20:37:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af6d39fa-9bd3-4118-8cd2-223cb385e579</guid><dc:creator>David Loewy</dc:creator><comments>https://community.appian.com/support/w/kb/2351/kb-2184-java-sql-sqlexception-unable-to-obtain-a-connection-within-configured-timeout-observed-in-application-server-log#comments</comments><description>Revision 5 posted to Appian Knowledge Base by David Loewy on 5/6/2021 8:37:23 PM&lt;br /&gt;
&lt;div class="content"&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following exception appears in the &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt; file:&lt;/p&gt;
&lt;pre&gt;Caused by: java.sql.SQLException: Unable to obtain a connection within configured timeout&lt;/pre&gt;
&lt;p&gt;In cases where this exception is encountered regularly,&amp;nbsp;application features that interact with databases may experience degraded performance. This&amp;nbsp;can manifest in a number of ways,&amp;nbsp;ranging from&amp;nbsp;user-facing application slowness&amp;nbsp;to frequently failing process model execution.&lt;/p&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The application server was unable to establish a connection to the business database within the default 10 second timeout. The timeout is in place to prevent the application from locking up if a large number of threads are blocked waiting for a database connection to initialize. In many cases, this error message is a symptom of an unreliable network configuration between the web server and the database, rather than an issue localized to either of those components.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
Work with your database administrators, network operations team, and/or Appian Support to verify the reliability of the network connection between the application server and the database instance.
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;In cases when the network conditions or database responsiveness cannot be improved, increase or disable the connection timeout properties.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;DISCLAIMER:&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;&amp;nbsp;These properties only affect the way the application server reacts to slow connection attempts. Without addressing the underlying issues&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;, modifications to these values may degrade application performance.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-family:inherit;"&gt;Self-Managed&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Modify or add the following properties to the &lt;strong&gt;custom.properties&lt;/strong&gt; file:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;conf.data.datasources.internal.CONNECTION_TIMEOUT_MS=&amp;lt;time in milliseconds&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;conf.data.datasources.internal.connectionTimeout.enabled=false&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;strong&gt;Notes:&lt;/strong&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li class="content"&gt;There is no &amp;quot;correct&amp;quot; value for the &lt;code&gt;CONNECTION_TIMEOUT_MS&lt;/code&gt; property. Choose a value based on tolerance for latency. The default value is &lt;code&gt;10000&lt;/code&gt;.&lt;/li&gt;
&lt;li class="content"&gt;If the &lt;span&gt;&lt;code&gt;connectionTimeout.enabled&lt;/code&gt;&amp;nbsp;&lt;/span&gt;property is set to &lt;code&gt;false&lt;/code&gt;, the timeout above is ignored. The default value is &lt;code&gt;true&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Cloud&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support to request a change to these values. A site restart will be required to apply the configuration changes.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: May 2021&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server&lt;/div&gt;
</description></item><item><title>DRAFT SP-6217: "java.sql.SQLException: Unable to obtain a connection within configured timeout"</title><link>https://community.appian.com/support/w/kb/2351/kb-2184-java-sql-sqlexception-unable-to-obtain-a-connection-within-configured-timeout-observed-in-application-server-log/revision/4</link><pubDate>Thu, 06 May 2021 00:00:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af6d39fa-9bd3-4118-8cd2-223cb385e579</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/2351/kb-2184-java-sql-sqlexception-unable-to-obtain-a-connection-within-configured-timeout-observed-in-application-server-log#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Parmida Borhani on 5/6/2021 12:00:06 AM&lt;br /&gt;
&lt;div class="content"&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following exception appears in the &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt; file:&lt;/p&gt;
&lt;pre&gt;Caused by: java.sql.SQLException: Unable to obtain a connection within configured timeout&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The application server was unable to establish a connection to the business database within the default 10 second timeout. The timeout is in place to prevent the application from locking up if a large number of threads are blocked waiting for a database connection to initialize. In many cases, this error message is a symptom of an unreliable network configuration between the web server and the database, rather than an issue localized to either of those components.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
Work with your database administrators, network operations team, and/or Appian Support to verify the reliability of the network connection between the application server and the database instance.
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;In cases when the network conditions or database responsiveness cannot be improved, increase or disable the connection timeout properties.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;DISCLAIMER:&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;&amp;nbsp;These properties only affect the way the application server reacts to slow connection attempts. Without addressing the underlying issues&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;, modifications to these values may degrade application performance.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-family:inherit;"&gt;Self-Managed&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Modify or add the following properties to the &lt;strong&gt;custom.properties&lt;/strong&gt; file:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;conf.data.datasources.internal.CONNECTION_TIMEOUT_MS=&amp;lt;time in milliseconds&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;conf.data.datasources.internal.connectionTimeout.enabled=false&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;strong&gt;Notes:&lt;/strong&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li class="content"&gt;There is no &amp;quot;correct&amp;quot; value for the &lt;code&gt;CONNECTION_TIMEOUT_MS&lt;/code&gt; property. Choose a value based on tolerance for latency. The default value is &lt;code&gt;10000&lt;/code&gt;.&lt;/li&gt;
&lt;li class="content"&gt;If the &lt;span&gt;&lt;code&gt;connectionTimeout.enabled&lt;/code&gt;&amp;nbsp;&lt;/span&gt;property is set to &lt;code&gt;false&lt;/code&gt;, the timeout above is ignored. The default value is &lt;code&gt;true&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Cloud&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support to request a change to these values. A site restart will be required to apply the configuration changes.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: May 2021&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server&lt;/div&gt;
</description></item><item><title>DRAFT SP-6217: "java.sql.SQLException: Unable to obtain a connection within configured timeout"</title><link>https://community.appian.com/support/w/kb/2351/kb-2184-java-sql-sqlexception-unable-to-obtain-a-connection-within-configured-timeout-observed-in-application-server-log/revision/3</link><pubDate>Wed, 05 May 2021 23:59:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af6d39fa-9bd3-4118-8cd2-223cb385e579</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/2351/kb-2184-java-sql-sqlexception-unable-to-obtain-a-connection-within-configured-timeout-observed-in-application-server-log#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Parmida Borhani on 5/5/2021 11:59:40 PM&lt;br /&gt;
&lt;div class="content"&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following exception appears in the &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt; file:&lt;/p&gt;
&lt;pre&gt;Caused by: java.sql.SQLException: Unable to obtain a connection within configured timeout&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The application server was unable to establish a connection to the business database within the default 10 second timeout. The timeout is in place to prevent the application from locking up if a large number of threads are blocked waiting for a database connection to initialize. In many cases, this error message is a symptom of an unreliable network configuration between the web server and the database, rather than an issue localized to either of those components.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
Work with your database administrators, network operations team, and/or Appian Support to verify the reliability of the network connection between the application server and the database instance.
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;In cases when the network conditions or database responsiveness cannot be improved, increase or disable the connection timeout properties.&amp;nbsp;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;DISCLAIMER:&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;&amp;nbsp;These properties only affect the way the application server reacts to slow connection attempts. Without addressing the underlying issues&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;, modifications to these values may degrade application performance.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-family:inherit;"&gt;Self-Managed&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Modify or add the following properties to the &lt;strong&gt;custom.properties&lt;/strong&gt; file:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;conf.data.datasources.internal.CONNECTION_TIMEOUT_MS=&amp;lt;time in milliseconds&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;conf.data.datasources.internal.connectionTimeout.enabled=false&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;strong&gt;Notes:&lt;/strong&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li class="content"&gt;There is no &amp;quot;correct&amp;quot; value for the &lt;code&gt;CONNECTION_TIMEOUT_MS&lt;/code&gt; property. Choose a value based on tolerance for latency. The default value is &lt;code&gt;10000&lt;/code&gt;.&lt;/li&gt;
&lt;li class="content"&gt;If the &lt;span&gt;&lt;code&gt;connectionTimeout.enabled&lt;/code&gt;&amp;nbsp;&lt;/span&gt;property is set to &lt;code&gt;false&lt;/code&gt;, the timeout above is ignored. The default value is &lt;code&gt;true&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Cloud&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support to request a change to these values. A site restart will be required to apply the configuration changes.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: May 2021&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server&lt;/div&gt;
</description></item><item><title>DRAFT SP-6217: "java.sql.SQLException: Unable to obtain a connection within configured timeout"</title><link>https://community.appian.com/support/w/kb/2351/kb-2184-java-sql-sqlexception-unable-to-obtain-a-connection-within-configured-timeout-observed-in-application-server-log/revision/2</link><pubDate>Wed, 05 May 2021 16:04:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af6d39fa-9bd3-4118-8cd2-223cb385e579</guid><dc:creator>David Loewy</dc:creator><comments>https://community.appian.com/support/w/kb/2351/kb-2184-java-sql-sqlexception-unable-to-obtain-a-connection-within-configured-timeout-observed-in-application-server-log#comments</comments><description>Revision 2 posted to Appian Knowledge Base by David Loewy on 5/5/2021 4:04:50 PM&lt;br /&gt;
&lt;div class="content"&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following exception appears in the &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt; file:&lt;/p&gt;
&lt;pre&gt;Caused by: java.sql.SQLException: Unable to obtain a connection within configured timeout&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;By default, the application server applies a 10 second timeout when attempting to establish a connection to a business database. Without this timeout, the application runs the risk of locking up if a large number of threads get blocked waiting for a database connection to initialize.&lt;/p&gt;
&lt;p&gt;In many cases, this error message is a symptom of an unreliable network configuration between the web server and the database, rather than an issue localized to either of those components.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;h3&gt;Option 1&lt;/h3&gt;
&lt;p&gt;Work with your database administrators, network operations team, and/or Appian Cloud Support to verify the reliability of the network connection between the application server and the database instance.&lt;/p&gt;
&lt;h3&gt;Option 2&lt;/h3&gt;
&lt;p&gt;In cases when the network conditions or database responsiveness cannot be improved, extend or disable the connection timeout. Modify or add the following properties to the &lt;strong&gt;custom.properties&lt;/strong&gt; file, then restart the application server.&lt;/p&gt;
&lt;p&gt;Note: These properties only affect the way the application server reacts to slow connection attempts. Without addressing the underlying issues per Option 1, modifications to these values may degrade application server performance.&lt;/p&gt;
&lt;pre&gt;# There is no &amp;quot;correct&amp;quot; value for this property. Choose a value based on tolerance for latency.&lt;br /&gt;# Default: 10000&lt;br /&gt;conf.data.datasources.internal.CONNECTION_TIMEOUT_MS=&amp;lt;time in milliseconds&amp;gt;&lt;br /&gt;&lt;br /&gt;# If this property is set to `false`, the timeout above is ignored.&lt;br /&gt;# Default: true&lt;br /&gt;conf.data.datasources.internal.connectionTimeout.enabled=false&lt;/pre&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: May 2021&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server&lt;/div&gt;
</description></item><item><title>DRAFT SP-6217: "java.sql.SQLException: Unable to obtain a connection within configured timeout"</title><link>https://community.appian.com/support/w/kb/2351/kb-2184-java-sql-sqlexception-unable-to-obtain-a-connection-within-configured-timeout-observed-in-application-server-log/revision/1</link><pubDate>Tue, 04 May 2021 15:34:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af6d39fa-9bd3-4118-8cd2-223cb385e579</guid><dc:creator>David Loewy</dc:creator><comments>https://community.appian.com/support/w/kb/2351/kb-2184-java-sql-sqlexception-unable-to-obtain-a-connection-within-configured-timeout-observed-in-application-server-log#comments</comments><description>Revision 1 posted to Appian Knowledge Base by David Loewy on 5/4/2021 3:34:33 PM&lt;br /&gt;
&lt;div class="content"&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following exception appears in the &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt; file:&lt;/p&gt;
&lt;pre&gt;Caused by: java.sql.SQLException: Unable to obtain a connection within configured timeout&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;By default, the application server applies a 10 second timeout when attempting to establish a connection to a business database. Without this timeout, the application runs the risk of locking up if a large number of threads get blocked waiting for a database connection to initialize.&lt;/p&gt;
&lt;p&gt;In many cases, this error message is a symptom of an unreliable network configuration between the web server and the database, rather than an issue localized to either of those components.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;h3&gt;Option 1&lt;/h3&gt;
&lt;p&gt;Work with your database administrators, network operations team, and/or Appian Cloud Support to verify the reliability of the network connection between the application server and the database instance.&lt;/p&gt;
&lt;h3&gt;Option 2&lt;/h3&gt;
&lt;p&gt;In cases when the network conditions or database responsiveness cannot be improved, extend or disable the connection timeout. Modify or add the following properties to the &lt;strong&gt;custom.properties&lt;/strong&gt; file, then restart the application server.&lt;/p&gt;
&lt;pre&gt;# Default: 10000&lt;br /&gt;conf.data.datasources.internal.CONNECTION_TIMEOUT_MS=30000&lt;br /&gt;&lt;br /&gt;# Default: true&lt;br /&gt;conf.data.datasources.internal.connectionTimeout.enabled=false&lt;/pre&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: May 2021&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, application server&lt;/div&gt;
</description></item></channel></rss>