CRE-2025-0115
MongoDB client disconnects and socket exceptions under loadHigh
CRE-2025-0115View on GitHub
Description
- Under high client load or resource exhaustion (e.g., 1 CPU, 500MB RAM), MongoDB can begin to log a large number of socket disconnections and broken pipe errors.\n- This results in frequent connection churn, interrupted operations, and possible failed writes.\n
Mitigation
- Add more CPU and memory resources.\n- Introduce connection pooling and rate limiting on the client side.\n- Optimize MongoDB queries and schema to reduce pressure.\n- Monitor and alert on connection and socket exception patterns.\n