<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available]]></title><description><![CDATA[<p dir="auto">We've been seeing this error pop up and cause some failures to our API calls recently. We're on an <strong>Essentials Hosted plan</strong> currently on v1.46.0.</p>
<pre><code>2023-10-20 08:07:06.942 PM ERROR io.fusionauth.api.service.system.DefaultAsyncTaskManager - An exception occurred while managing an async task.
org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause: java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 2000ms.
### The error may exist in io/fusionauth/api/domain/LockMapper.java (best guess)
### The error may involve io.fusionauth.api.domain.LockMapper.lock
### The error occurred while executing a query
### Cause: java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 2000ms.
	at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
</code></pre>
<p dir="auto">I saw this <a href="https://fusionauth.io/community/forum/topic/756/java-sql-sqltransientconnectionexception-when-setting-up-a-server">related issue</a> and mentioned about IOPS limit, but I haven't seen that metric anywhere. Is this something about how we're <em>using</em> FusionAuth or just a system issue? We've been ramping up more users onto the system recently, along with API calls so not sure if it's something we're doing, but wanted to make sure this doesn't become a larger issue as we continue to scale.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/2539/java-sql-sqltransientconnectionexception-hikaripool-1-connection-is-not-available</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 00:58:24 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/2539.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Oct 2023 20:49:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available on Tue, 24 Oct 2023 16:08:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2507">@mark-robustelli</a> I had opened a support ticket (via email) and got this response</p>
<pre><code>If you have external calls in your integration, you will want to ensure a fast response  

Lambdas - If you are calling FusionAuth APIs in a lambda, ensure a connection over port 9012 (as opposed to port 9011).  Any other external HTTP calls (to your own endpoints) using HTTPConnect should return quickly as well to ensure optimal performance. 

Connectors - If you have a connector, then FusionAuth will hold things in flight (database connections, in-memory information, etc) while we wait for your connector to return an authentication response and log the user in.    

Ideally, your connector would have a read timeout of 1ms and a connect timeout of 2ms or less.   

Higher values mean FusionAuth will have fewer resources (database connections, etc) available to service incoming login requests (as older login requests are still in flight waiting for the Connector return). 

Webhooks -  

If you have any webhooks, these should also return quickly to optimize performance.  Any SocketTimeoutException (read or connect) in the Event Log would indicate a slower webhook integration. 

Adjust Period Tasks  

If you have any periodic tasks running against your deployment (perhaps to synchronize user data, application data, etc by calling our APIs), then you will want to write back-off logic if the system shows a heavy load (monitoring documentation). 

Turn off logging in production  

This change will be less impactful but will help nevertheless.  Logging should be used when there is an issue with SMTP/email, lambdas, connectors, users, etc but turned off in production when not needed.  Logs are output to System &gt; Event Log.  The debug enabled toggle throughout the UI (and API) indicates whether this logging will occur.  
</code></pre>
<p dir="auto">The big ones were that we were making calls to the API in a lambda and switched the port as mentioned. We also had left on debug logging in a lot of places so have disabled that for now. Validated our webhooks are all running pretty fast (median type is 1-2ms) and connector is pretty fast, though slower 20-30ms median.</p>
]]></description><link>https://fusionauth.io/community/forum/post/6726</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/6726</guid><dc:creator><![CDATA[mark.shapiro]]></dc:creator><pubDate>Tue, 24 Oct 2023 16:08:30 GMT</pubDate></item><item><title><![CDATA[Reply to java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available on Tue, 24 Oct 2023 14:39:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2585">@mark-shapiro</a> , Thanks for clearing up the hosting. It sounds like you have the business hosting plan.  Now, which FusionAuth license (This is different than the hosting) do you have? In an earlier post it sounded like you had the Essentials plan.  Can you please confirm that with your admin?  (It should be one of the following: Community, Starter, Essentials, or Enterprise)</p>
]]></description><link>https://fusionauth.io/community/forum/post/6724</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/6724</guid><dc:creator><![CDATA[mark.robustelli]]></dc:creator><pubDate>Tue, 24 Oct 2023 14:39:40 GMT</pubDate></item><item><title><![CDATA[Reply to java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available on Mon, 23 Oct 2023 14:17:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2507">@mark-robustelli</a> I verified with the domain name itself.</p>
<pre><code>nslookup login.mycompany.com

Server:         8.8.8.8
Address:        8.8.8.8#53

Non-authoritative answer:
login.mycompany.com       canonical name = mycompany-prod.fusionauth.io.
</code></pre>
<p dir="auto">So should confirm we're using hosted (and had been what I thought).</p>
]]></description><link>https://fusionauth.io/community/forum/post/6717</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/6717</guid><dc:creator><![CDATA[mark.shapiro]]></dc:creator><pubDate>Mon, 23 Oct 2023 14:17:21 GMT</pubDate></item><item><title><![CDATA[Reply to java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available on Fri, 20 Oct 2023 22:53:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2585">@mark-shapiro</a> Please do check with your team. There are two different things, the licensing and the hosting.  It is possible to have Business Hosting or Self-Hosting with the Essentials Plan.</p>
]]></description><link>https://fusionauth.io/community/forum/post/6710</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/6710</guid><dc:creator><![CDATA[mark.robustelli]]></dc:creator><pubDate>Fri, 20 Oct 2023 22:53:26 GMT</pubDate></item><item><title><![CDATA[Reply to java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available on Fri, 20 Oct 2023 21:32:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2507">@mark-robustelli</a> It's not today critical, though I logged into the console and I don't have a support option (I might have to bug our admin to go that route).</p>
<p dir="auto">Though I also see Essentials is under Self-Hosted, so now I'm questioning life. I'll have to check with our DevOps team as well. So will do that (Monday) if there's there anything to look at on our side, let me know.</p>
]]></description><link>https://fusionauth.io/community/forum/post/6709</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/6709</guid><dc:creator><![CDATA[mark.shapiro]]></dc:creator><pubDate>Fri, 20 Oct 2023 21:32:11 GMT</pubDate></item><item><title><![CDATA[Reply to java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available on Fri, 20 Oct 2023 21:18:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2585">@mark-shapiro</a> , just wanted you to be aware that since you have the Essentials plan, you can get support directly thorough the <a href="https://fusionauth.io/docs/v1/tech/admin-guide/account-portal#support" rel="nofollow ugc">FusionAuth Account Portal</a> if this is time sensitive for you.</p>
]]></description><link>https://fusionauth.io/community/forum/post/6708</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/6708</guid><dc:creator><![CDATA[mark.robustelli]]></dc:creator><pubDate>Fri, 20 Oct 2023 21:18:55 GMT</pubDate></item></channel></rss>