This is part of the Troubleshooting using metrics guide.
Metrics need to be enabled for Keycloak. Follow the Gaining insights with metrics guide for more details.
A monitoring system collecting the metrics.
Configure Keycloak to use a fixed size database connection pool. See the Concepts for database connection pools guide for more information.
If there is a high count of threads waiting for a database connection, increasing the database connection pool size is not always the best option. It might overload the database which would then become the bottleneck. Consider the following options instead:
|
Metric | Description |
---|---|
|
Idle database connections. |
|
Database connections used in ongoing transactions. |
|
Threads waiting for a database connection to become available. |
Return back to the Troubleshooting using metrics or proceed to HTTP metrics.