Will mongodb connection php be automatically released?

Source: Internet
Author: User
Will mongodb connection php be automatically released? In one case, if our program does not run mongodb connections, there will be more than 300 connections not released in my code. should this be the case? ------ Solution ------------------ This is a feature of MongoDB. If you do not want this, you can use persistent connections. Connection pool. Or limit the number of connections. Search for articles. Is it true that many mongodb connections to php will be automatically released?
One problem is that we have more than 300 connections when our program does not run mongodb.

Should this be the case if the link is not released in my code?

------ Solution --------------------
This is what MongoDB features. If you do not want this, you can use persistent connections. Connection pool. Or limit the number of connections. There are still a lot of articles to search

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.