WSO2 APIM 3.0.0 - Timeout: Pool empty. Unable to fetch a connection in 60 seconds
Recently I have come across a situation where my WSO2 APIM GUI publisher portal was taking too long to load and it was not showing the APIs listing. I have checked the logs available at wso2carbon.log and found error related to JDBC connection. Below is the summary of the issue, cause and solution- Environment WSO2 APIM 3.0.0 DB- MySQL OS- Ubuntu 16.04 Issue [2020-04-23 10:33:18,496] ERROR {org.wso2.carbon.identity.oauth2.OAuth2Service} - Error occurred while issuing the access token for Client ID : CUskLST4RR0mzQumGw_nq6PRykUa, User ID null, Scope : [] and Grant Type : authorization_code org.wso2.carbon.identity.base.IdentityRuntimeException: org.apache.tomcat.jdbc.pool.PoolExhaustedException: [https-jsse-nio-9443-exec-27] Timeout: Pool empty. Unable to fetch a connection in 60 seconds, none available[size:50; busy:50; idle:0; lastwait:60000].at org.wso2.carbon.identity.base.IdentityRuntimeException.error(IdentityRuntimeException.java:71) ........................