danieln
danieln

Reputation: 4973

Tomcat JDBC Connection Pool - Connections stuck on active

My application uses Tomcat JDBC connection pool, with MySQL DB.
Seems like a process that run during the night (anti virus scan?) cause the memory and CPU on the machine to increase, and as a result connections from the pool stuck on active until the connection pool can't response to any connection request.

I'm getting errors like:

Looking at a chart I'm generating describing the active connection state, it is flat until at some point it start increasing until it reach the maximum and stays there.
My connection pool is configure to remove unclosed connections (setRemoveAbandoned = true).

Do you have any idea how can I solve this issue?

Upvotes: 3

Views: 1743

Answers (1)

Fathah Rehman P
Fathah Rehman P

Reputation: 8741

I think this is because your application not closing connections after use. Please check your code and make sure all connections are closing after use.

Upvotes: 1

Related Questions