微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

MongoDB 持续高 CPU 使用率并终止 MongoDB

如何解决MongoDB 持续高 CPU 使用率并终止 MongoDB

执行后,mongodb在几秒钟后终止。

症状..

cpu 使用率维持在 300% 左右,然后突然关机。

日志...


2021-06-21T17:53:06.994+0900 I NETWORK  [replicasetMonitor-TaskExecutor] Successfully connected to 172.27.0.33:37002 (1 connections Now open to 172.27.0.33:37002 with a 5 second timeout)
2021-06-21T17:53:23.575+0900 E STORAGE  [WTCheckpointThread] WiredTiger error (12) [1624265603:575279][12778:0x7f9a910a3700],file:depository/collection-15--3593471947205486528.wt,WT_SESSION.checkpoint: __posix_sync,108: /mongodb/base/storage/node12/depository/collection-15--3593471947205486528.wt: handle-sync: fdatasync: Cannot allocate memory Raw: [1624265603:575279][12778:0x7f9a910a3700],108: /mongodb/base/storage/node12/depository/collection-15--3593471947205486528.wt: handle-sync: fdatasync: Cannot allocate memory
2021-06-21T17:53:23.575+0900 E STORAGE  [WTCheckpointThread] WiredTiger error (-31804) [1624265603:575407][12778:0x7f9a910a3700],WT_SESSION.checkpoint: __wt_panic,520: the process must exit and restart: WT_PANIC: WiredTiger library panic Raw: [1624265603:575407][12778:0x7f9a910a3700],520: the process must exit and restart: WT_PANIC: WiredTiger library panic
2021-06-21T17:53:23.575+0900 F -        [WTCheckpointThread] Fatal Assertion 50853 at src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp 409
2021-06-21T17:53:23.575+0900 F -        [WTCheckpointThread] 

***aborting after fassert() failure

2021-06-21T17:53:23.589+0900 F -        [WTCheckpointThread] Got signal: 6 (Aborted).

出现这个问题的mongodb是次要的。其他mongodb的(repl-set)没有问题

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。