为什么我的mongodb莫名其妙老挂呢?

为什么我的mongodb莫名其妙老挂呢?

之前觉得是内存问题,遂在启动的时候加了个内存的限制,现在还是出现每隔几天就挂一次,看不出啥原因

mongo启动命令:/usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/data/db --fork --logpath=/usr/local/mongodb/mongodb.log --logappend --wiredTigerCacheSizeGB 2

mongodn.log最后几行日志:

2021-06-20T04:05:03.554+0800 I WRITE    [conn31476881] update spider_amz_comment.task command: { q: { task_id: "04b2c680-d139-11eb-a754-00163e0061e1" }, u: { $set: { status: 1, updatetime: "2021-06-20 04:05:03" } }, multi: false, upsert: false } planSummary: COLLSCAN keysExamined:0 docsExamined:193841 nMatched:1 nModified:1 numYields:1518 locks:{ Global: { acquireCount: { r: 1521, w: 1519 } }, Database: { acquireCount: { r: 1, w: 1519 } }, Collection: { acquireCount: { r: 1, w: 1519 } } } 295ms

2021-06-20T04:05:03.554+0800 I COMMAND [conn31476881] command spider_amz_comment.$cmd command: update { update: "task", ordered: true, lsid: { id: UUID("ddb0553c-af82-4a99-a31e-5862486aa7f5") }, $db: "spider_amz_comment", $readPreference: { mode: "primary" } } numYields:0 reslen:44 locks:{ Global: { acquireCount: { r: 1521, w: 1519 } }, Database: { acquireCount: { r: 1, w: 1519 } }, Collection: { acquireCount: { r: 1, w: 1519 } } } protocol:op_msg 295ms

2021-06-20T04:05:03.557+0800 I NETWORK [conn31476880] end connection 127.0.0.1:56556 (57 connections now open)

2021-06-20T04:05:03.587+0800 I NETWORK [conn31476881] end connection 127.0.0.1:56558 (56 connections now open)

2021-06-20T04:05:03.797+0800 I COMMAND [conn31476887] command spider_amz_listing.task command: find { find: "task", filter: { task_id: "f4680d3c-b845-11eb-a02b-00163e0061e1", appid: "ac539beebe55e46db51daacef575e336" }, limit: 1, singleBatch: true, lsid: { id: UUID("00060fce-1199-44b1-9e5d-3e7c055acd5a") }, $db: "spider_amz_listing", $readPreference: { mode: "primaryPreferred" } } planSummary: COLLSCAN keysExamined:0 docsExamined:364698 cursorExhausted:1 numYields:2866 nreturned:0 reslen:96 locks:{ Global: { acquireCount: { r: 5734 } }, Database: { acquireCount: { r: 2867 } }, Collection: { acquireCount: { r: 2867 } } } protocol:op_msg 477ms

2021-06-20T04:05:03.799+0800 I NETWORK [conn31476885] end connection 127.0.0.1:56568 (55 connections now open)

2021-06-20T04:05:03.800+0800 I NETWORK [conn31476884] end connection 127.0.0.1:56566 (54 connections now open)

2021-06-20T04:05:03.800+0800 I NETWORK [conn31476886] end connection 127.0.0.1:56570 (53 connections now open)

2021-06-20T04:05:03.800+0800 I NETWORK [conn31476883] end connection 127.0.0.1:56564 (52 connections now open)

2021-06-20T04:05:03.800+0800 I NETWORK [conn31476882] end connection 127.0.0.1:56562 (51 connections now open)

2021-06-20T04:05:03.800+0800 I NETWORK [conn31476887] end connection 127.0.0.1:56572 (50 connections now open)

2021-06-20T04:05:03.950+0800 I NETWORK [listener] connection accepted from 127.0.0.1:56576 #31476888 (51 connections now open)

2021-06-20T04:05:03.950+0800 I NETWORK [conn31476888] received client metadata from 127.0.0.1:56576 conn: { driver: { name: "PyMongo", version: "3.9.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "3.10.0-957.27.2.el7.x86_64" }, platform: "CPython 3.6.6.final.0" }

2021-06-20T04:05:03.951+0800 I NETWORK [listener] connection accepted from 127.0.0.1:56578 #31476889 (52 connections now open)

2021-06-20T04:05:03.951+0800 I NETWORK [conn31476889] received client metadata from 127.0.0.1:56578 conn: { driver: { name: "PyMongo", version: "3.9.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "3.10.0-957.27.2.el7.x86_64" }, platform: "CPython 3.6.6.final.0" }

2021-06-20T04:05:03.954+0800 I NETWORK [listener] connection accepted from 127.0.0.1:56580 #31476890 (53 connections now open)

2021-06-20T04:05:03.954+0800 I NETWORK [conn31476890] received client metadata from 127.0.0.1:56580 conn: { driver: { name: "PyMongo", version: "3.9.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "3.10.0-957.27.2.el7.x86_64" }, platform: "CPython 3.6.6.final.0" }

2021-06-20T04:05:03.955+0800 I NETWORK [listener] connection accepted from 127.0.0.1:56582 #31476891 (54 connections now open)

2021-06-20T04:05:03.955+0800 I NETWORK [conn31476891] received client metadata from 127.0.0.1:56582 conn: { driver: { name: "PyMongo", version: "3.9.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "3.10.0-957.27.2.el7.x86_64" }, platform: "CPython 3.6.6.final.0" }

2021-06-20T04:05:03.957+0800 I NETWORK [listener] connection accepted from 127.0.0.1:56584 #31476892 (55 connections now open)

2021-06-20T04:05:03.957+0800 I NETWORK [conn31476892] received client metadata from 127.0.0.1:56584 conn: { driver: { name: "PyMongo", version: "3.9.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "3.10.0-957.27.2.el7.x86_64" }, platform: "CPython 3.6.6.final.0" }

2021-06-20T04:05:03.958+0800 I NETWORK [listener] connection accepted from 127.0.0.1:56586 #31476893 (56 connections now open)

2021-06-20T04:05:03.958+0800 I NETWORK [conn31476893] received client metadata from 127.0.0.1:56586 conn: { driver: { name: "PyMongo", version: "3.9.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "3.10.0-957.27.2.el7.x86_64" }, platform: "CPython 3.6.6.final.0" }

2021-06-20T04:05:04.203+0800 I COMMAND [conn31476893] command spider_amz_listing.task command: find { find: "task", filter: { task_id: "f4667e2c-b845-11eb-a02b-00163e0061e1", appid: "ac539beebe55e46db51daacef575e336" }, limit: 1, singleBatch: true, lsid: { id: UUID("28617d2c-4efb-43cb-9faf-1c932f9fc226") }, $db: "spider_amz_listing", $readPreference: { mode: "primaryPreferred" } } planSummary: COLLSCAN keysExamined:0 docsExamined:364698 cursorExhausted:1 numYields:2850 nreturned:0 reslen:96 locks:{ Global: { acquireCount: { r: 5702 } }, Database: { acquireCount: { r: 2851 } }, Collection: { acquireCount: { r: 2851 } } } protocol:op_msg 244ms

2021-06-20T04:05:04.204+0800 I NETWORK [conn31476891] end connection 127.0.0.1:56582 (55 connections now open)

2021-06-20T04:05:04.204+0800 I NETWORK [conn31476890] end connection 127.0.0.1:56580 (54 connections now open)

2021-06-20T04:05:04.204+0800 I NETWORK [conn31476892] end connection 127.0.0.1:56584 (53 connections now open)

2021-06-20T04:05:04.204+0800 I NETWORK [conn31476893] end connection 127.0.0.1:56586 (52 connections now open)

2021-06-20T04:05:04.205+0800 I NETWORK [conn31476889] end connection 127.0.0.1:56578 (51 connections now open)

2021-06-20T04:05:04.205+0800 I NETWORK [conn31476888] end connection 127.0.0.1:56576 (50 connections now open)

以上是 为什么我的mongodb莫名其妙老挂呢? 的全部内容, 来源链接: utcz.com/p/197308.html

回到顶部