Skip to content

Connection exhaustion#

What it does

Investigate reports that applications cannot obtain database connections.

$ pgcue investigate connection-exhaustion
$ pgcue run connection-exhaustion

Steps#

  1. Connections by application and state activity.connections: See how current connections are distributed by application, user, and state.
  2. Idle transactions activity.idle_transactions: Find sessions retaining a connection while idle inside a transaction.
  3. Long-running transactions activity.long_transactions: Find long-lived transactions that may keep connections occupied.

Topics#