Application login error - Connection pool

When user login in the Application user get the message of authentication failed.
Upon checking the logs it shows that the DB is not connected because of connection pool error.

What should be done in this case?


Please share the complete log stack trace