Products | Versions |
---|---|
Spotfire Server | All |
The server may become unresponsive or users can intermittently experience issues when performing all types of actions such as:
The action will hang for about 10 seconds before it is canceled and the following error message will be logged: "Timeout while waiting for database connection after 10 seconds."
There are two ways to solve this issue, either by reducing the peak load on the data source or by increasing the connection pool size. Only the later alternative is described here.
1). Identify the Data Source which has reached the max-connection restriction.
----- Instructions ---------------
----------------------------------
2). Increase the max-connections value.
For server.default Data Source (which is for Spotfire Database).
----- Instructions ---------------
<max-connections>40</max-connections>
For other Data Sources (which are used in Information Links).
----- Instructions ---------------
------------------------------------
Note: After increasing the max-connections, the TIBCO Spotfire Server may hang with "Too many jobs" error. See KB 000021605 for more information. By default, the TIBCO Spotfire Server is configured with 10 seconds to get a database connection. If you think this time is not sufficient then it can be increased.
---------- Instructions to increase the database connection login timeout ---------------
<login-timeout>10</login-timeout>
<!-- Login timeout for JDBC database connections. -->
<connection-login-timeout>10</connection-login-timeout>