Connection Leak

Noun · Development

Definitions

  1. A bug where database connections are opened but never returned to the connection pool, eventually exhausting all available connections. The database equivalent of a memory leak. Caused by missing finally/close blocks, exceptions before connection release, or ORM misuse. Symptoms: 'too many connections' errors after hours/days of uptime.

    In plain English: When code keeps opening database connections but forgets to close them, eventually running out of connections.

    Example: "After 6 hours the app starts throwing 'no available connections' — a connection leak in the error handler path never calls conn.release()."

Related Terms