- Home
- Skills
- Data & Databases
- Repair Connection Pool Exhaustion
Works with the AI Agents you already use
Repair Connection Pool Exhaustion
Repair leaked or long-held connections, per-request client pools, fan-out saturation, retry amplification, and cleanup gaps without guessing pool sizes.
$1
Repair Connection Pool Exhaustion
Example session with this skill installed
Our Node/TypeScript API uses Prisma/PostgreSQL. The pool is configured for 10 connections per instance, but each request opens a transaction, then calls two HTTP services before the transaction finishes. A bulk endpoint runs 20 items with Promise.all, and the retry wrapper can run a second transaction while the first attempt is still unwinding after timeout. Under load we get pool acquisition timeouts. Repair connection-pool exhaustion locally using Testcontainers and an intentionally small test pool. Do not connect to production, increase live pool size, change database server settings, or invent our production connection limit.
- Read your context and instructions
- Compiled the repair connection pool
Pool saturation found. Transactions hold DB connections across HTTP calls, bulk Promise.all exceeds the local pool, and retry can overlap cleanup. The repair narrows connection hold time, bounds fan-out, orders retry after release, adds tiny-pool deterministic tests, and exposes acquire/hold metrics. Production connection capacity and final pool size remain unverified.
Connects securely to your tools. The creator never sees your data.
About this skill
Connection pool exhaustion is often caused by lifecycle and concurrency mistakes rather than a pool that is simply too small. Transactions may hold connections across network I/O, clients may be recreated per request, worker fan-out may exceed available connections, and retries or streaming exceptions may retain resources.
Repair Connection Pool Exhaustion gives an AI coding agent a repository workflow for tracing acquire/hold/release lifecycles, repairing client reuse and cleanup, shortening connection hold time, bounding local concurrency, fixing retry interaction, and validating behavior with intentionally small local pools.
It does not connect to production services, change live pool/server limits, kill sessions, or invent production capacity.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Data & Databases.
Repairs repository-level pool ownership and saturation behavior only. It cannot determine the correct production pool size, server max-connections budget, cross-instance capacity, live worker concurrency, provider limits, or production performance without approved measurement.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 months ago
Permissions
Run on a clean branch. Use disposable databases/caches, fake HTTP services, and tiny test pools to expose lifecycle defects. Keep production credentials, customer data, live connection strings, and provider tokens out of the workspace.