This is part of the Metrics for troubleshooting Keycloak deployment guide.
Metrics need to be enabled for Keycloak. Follow the Enabling Keycloak 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 Metrics for troubleshooting Keycloak deployment or proceed to Keycloak HTTP metrics.