Too many connections error when using Connector/J

(Doc ID 2350273.1)

Last updated on JANUARY 25, 2018

Applies to:

MySQL Server - Version 5.5 and later
Information in this document applies to any platform.

Symptoms

Sometimes application which works with MySQL Database via Connector/J may fail with error similar to the following:

Also many connections may be observed in 'sleep' state.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms