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