java.sql.SQLTransientConnectionException: db - Connection is not available, request timed out after 2020ms.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

This might be cause due to an overload in your database accesses. Try to implement a queue or using an Executor to access the database server.

Solutions on the web

via Google Groups by Nadav Samet, 10 months ago
db - Connection is not available, request timed out after 2018ms.
via Google Groups by Matt D, 10 months ago
Connection is not available, request timed out after 56765ms.
via GitHub by doom369
, 1 year ago
HikariPool-0 - Connection is not available, request timed out after 939707ms.
via Stack Overflow by Fabian S.
, 1 year ago
selfstanding-pool - Connection is not available, request timed out after 30000ms.
via GitHub by norbertpotocki
, 1 year ago
UserShardPool:jdbc:mysql://dbuser.mydomain.com:3306/UserShard - Connection is not available, request timed out after 38104ms.
via codegur.com by Unknown author, 1 year ago
selfstanding-pool - Connection is not available, request timed out after 30000ms.
java.sql.SQLTransientConnectionException: db - Connection is not available, request timed out after 2020ms.
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:196)
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:147)
at slick.jdbc.hikaricp.HikariCPJdbcDataSource.createConnection(HikariCPJdbcDataSource.scala:12)
at slick.jdbc.JdbcBackend$BaseSession.conn$lzycompute(JdbcBackend.scala:415)
at slick.jdbc.JdbcBackend$BaseSession.conn(JdbcBackend.scala:414)
at slick.jdbc.JdbcBackend$SessionDef$class.prepareStatement(JdbcBackend.scala:297)
at slick.jdbc.JdbcBackend$BaseSession.prepareStatement(JdbcBackend.scala:407)
at slick.jdbc.StatementInvoker.results(StatementInvoker.scala:33)
at slick.jdbc.StatementInvoker.iteratorTo(StatementInvoker.scala:22)
at slick.jdbc.Invoker$class.foreach(Invoker.scala:48)
at slick.jdbc.StatementInvoker.foreach(StatementInvoker.scala:16)
at slick.jdbc.StreamingInvokerAction$class.run(StreamingInvokerAction.scala:22)
at slick.driver.JdbcActionComponent$QueryActionExtensionMethodsImpl$$anon$1.run(JdbcActionComponent.scala:218)
at slick.driver.JdbcActionComponent$QueryActionExtensionMethodsImpl$$anon$1.run(JdbcActionComponent.scala:218)
at slick.backend.DatabaseComponent$DatabaseDef$$anon$2.liftedTree1$1(DatabaseComponent.scala:237)
at slick.backend.DatabaseComponent$DatabaseDef$$anon$2.run(DatabaseComponent.scala:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

3 times, 1 year ago
Once, 1 year ago
Once, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
35 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.