tencent cloud

Feedback

Number of Connections Exceeding Limit

Last updated: 2024-01-15 14:49:56

    Issue Description

    If the number of connections exceeds the upper limit, you can use the connection management and restart features in the console and optimize the service for troubleshooting.

    Cause

    There are connection leaks, improper client coding, unreasonable connection pool configuration, or many unreleased connections.
    There is a large number of concurrent application requests, and the configured upper limit of connections is insufficient, so the current database specification cannot sustain such requests.

    Troubleshooting Procedure

    Option 1. Increase the upper limit

    1. Log in to the TencentDB for MongoDB console and click an instance ID to enter the instance management page.
    2. Select Database Management > Manage Connection and view the source IPs and number of connections for service troubleshooting.
    Note:
    If the number of connections reaches or exceeds 80% of the upper limit and affects the establishment of new connections, you can click Increase Connections in the console to increase the maximum number of connections to 150% of the original limit for the next 6 hours.
    If the problem persists, contact the aftersales service or submit a ticket for assistance.
    

    Option 2. Restart the instance

    1. Log in to the TencentDB for MongoDB console and click an instance ID to enter the instance management page.
    2. Select Database Management > Manage Connection. You can click Restart on the right to restart the mongos instance to fix the problem.
    Note:
    Replica sets on v4.0 don't have mongos instances.
    Restarting the mongod instance is highly risky and will cause a momentary disconnection, during which if data is written, rollback may be triggered, leading to data loss. Therefore, the restart feature is not enabled by default. If you need to enable it, contact the aftersales service or submit a ticket for assistance.
    

    Option 3. Optimize the service

    You can troubleshoot the service for optimization.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support