Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mongodb mongdob.log文件中的连接日志太多_Mongodb_Logging_Mongoose_Connection - Fatal编程技术网

Mongodb mongdob.log文件中的连接日志太多

Mongodb mongdob.log文件中的连接日志太多,mongodb,logging,mongoose,connection,Mongodb,Logging,Mongoose,Connection,这些是我在mongodb.log文件中得到的日志,连续有数千行。我正在Nodejs中使用mongoose进行连接。这是正常的还是问题?这里可能有什么问题: 2019-07-25T02:57:44.341+0000 I NETWORK [conn77174] received client metadata from 127.0.0.1:59588 conn77174: { driver: { name: "nodejs", version: "3.1.6"

这些是我在mongodb.log文件中得到的日志,连续有数千行。我正在Nodejs中使用mongoose进行连接。这是正常的还是问题?这里可能有什么问题:

2019-07-25T02:57:44.341+0000 I NETWORK [conn77174] received client metadata from 127.0.0.1:59588 conn77174: { driver: { name: "nodejs", version: "3.1.6" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "4.4.0-131-generic" }, platform: "Node.js v8.12.0, LE, mongodb-core: 3.1.5" } 
2019-07-25T02:57:45.713+0000 I NETWORK [conn77176] received client metadata from 127.0.0.1:59594 conn77176: { driver: { name: "nodejs", version: "3.1.6" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "4.4.0-131-generic" }, platform: "Node.js v8.12.0, LE, mongodb-core: 3.1.5" } 
2019-07-25T02:57:47.096+0000 I NETWORK [conn77178] received client metadata from 127.0.0.1:59600 conn77178: { driver: { name: "nodejs", version: "3.1.6" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "4.4.0-131-generic" }, platform: "Node.js v8.12.0, LE, mongodb-core: 3.1.5" } 
2019-07-25T02:57:48.467+0000 I NETWORK [conn77180] received client metadata from 127.0.0.1:59606 conn77180: { driver: { name: "nodejs", version: "3.1.6" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "4.4.0-131-generic" }, platform: "Node.js v8.12.0, LE, mongodb-core: 3.1.5" } 
2019-07-25T02:57:49.846+0000 I NETWORK [conn77182] received client metadata from 127.0.0.1:59612 conn77182: { driver: { name: "nodejs", version: "3.1.6" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "4.4.0-131-generic" }, platform: "Node.js v8.12.0, LE, mongodb-core: 3.1.5" }
 2019-07-25T02:57:51.208+0000 I NETWORK [conn77184] received client metadata from 127.0.0.1:59618 conn77184: { driver: { name: "nodejs", version: "3.1.6" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "4.4.0-131-generic" }, platform: "Node.js v8.12.0, LE, mongodb-core: 3.1.5" } 
2019-07-25T02:57:52.571+0000 I NETWORK [conn77186] received client metadata from 127.0.0.1:59624 conn77186: { driver: { name: "nodejs", version: "3.1.6" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "4.4.0-131-generic" }, platform: "Node.js v8.12.0, LE, mongodb-core: 3.1.5" } 
2019-07-25T02:57:53.945+0000 I NETWORK [conn77188] received client metadata from 127.0.0.1:59630 conn77188: { driver: { name: "nodejs", version: "3.1.6" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "4.4.0-131-generic" }, platform: "Node.js v8.12.0, LE, mongodb-core: 3.1.5" } 
2019-07-25T02:57:55.313+0000 I NETWORK [conn77190] received client metadata from 127.0.0.1:59636 conn77190: { driver: { name: "nodejs", version: "3.1.6" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "4.4.0-131-generic" }, platform: "Node.js v8.12.0, LE, mongodb-core: 3.1.5" } 
2019-07-25T02:57:56.698+0000 I NETWORK [conn77192] received client metadata from 127.0.0.1:59642 conn77192: { driver: { name: "nodejs", version: "3.1.6" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "4.4.0-131-generic" }, platform: "Node.js v8.12.0, LE, mongodb-core: 3.1.5" } 
2019-07-25T02:57:58.172+0000 I NETWORK [conn77194] received client metadata from 127.0.0.1:59648 conn77194: { driver: { name: "nodejs", version: "3.1.6" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "4.4.0-131-generic" }, platform: "Node.js v8.12.0, LE, mongodb-core: 3.1.5" } 
and the list goes on thousands of lines...
有关更多信息,请参见此图:
接收到的客户端元数据通常意味着打开了一个新连接。您正在使用连接池吗?如果是,您的池大小是多少?我没有明确设置任何池大小。我假设mongoose将其设置为某个默认值。一天内有两万多行,有可能打开这么多连接吗?运行此命令>db.serverStatus().connections并获得以下信息:{“current”:16,“available”:51184,“totalCreated”:NumberLong(102801)}
接收到的客户端元数据通常意味着打开了一个新连接。您正在使用连接池吗?如果是,您的池大小是多少?我没有明确设置任何池大小。我假设mongoose将其设置为某个默认值。一天内有两万多行,有可能打开这么多连接吗?运行这个命令>db.serverStatus().connections并得到以下结果:{“current”:16,“available”:51184,“totalCreated”:NumberLong(102801)}