mongodb 的联接php会自动释放吗

WBOY
Release: 2016-06-13 13:16:31
Original
1226 people have browsed it

mongodb 的连接php会自动释放吗?
出现一个情况是 我们程序没怎么跑 mongodb的连接就有300多

我的代码中没释放起链接 是应为这样吗?

------解决方案--------------------
这就是MongoDB 的特点。如果你不希望这样,可以使用持久连接。连接池之类的。或者限制连接数。搜索一下文章还是甚多的

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template