gpt4 book ai didi

mongodb - 在Mongodb上使用Grails时是否存在连接泄漏

转载 作者:行者123 更新时间:2023-12-02 14:25:34 26 4
gpt4 key购买 nike

我只是按照以下链接使用grails和Mongo db构建示例应用程序。

http://etcpe9.wordpress.com/2012/01/28/beginning-grails-2-0-with-mongodb/

但是每次我创建一个新人时,我都会在mongod shell中看到以下内容
XX连接现在打开。

我不确定这是否意味着连接泄漏?

Thu Feb 21 21:04:06 [initandlisten] connection accepted from 127.0.0.1:50526 #22
(1 connection now open)
Thu Feb 21 21:04:27 [initandlisten] connection accepted from 127.0.0.1:50527 #23
(2 connections now open)
Thu Feb 21 21:04:27 [initandlisten] connection accepted from 127.0.0.1:50528 #24
(3 connections now open)
Thu Feb 21 21:04:36 [initandlisten] connection accepted from 127.0.0.1:50531 #25
(4 connections now open)
Thu Feb 21 21:04:36 [initandlisten] connection accepted from 127.0.0.1:50532 #26
(5 connections now open)
Thu Feb 21 21:04:48 [initandlisten] connection accepted from 127.0.0.1:50533 #27
(6 connections now open)
Thu Feb 21 21:04:53 [initandlisten] connection accepted from 127.0.0.1:50534 #28
(7 connections now open)
Thu Feb 21 21:04:59 [initandlisten] connection accepted from 127.0.0.1:50535 #29
(8 connections now open)
Thu Feb 21 21:05:04 [initandlisten] connection accepted from 127.0.0.1:50536 #30
(9 connections now open)
Thu Feb 21 21:05:10 [initandlisten] connection accepted from 127.0.0.1:50537 #31
(10 connections now open)

最佳答案

不,这是mongodb驱动程序维护的连接池,以便它可以重用连接。

关于mongodb - 在Mongodb上使用Grails时是否存在连接泄漏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15006469/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com