1. 程式人生 > >MongoDB 崩潰,解決方案

MongoDB 崩潰,解決方案

1。這幾天mongodb經常重啟,今天直接崩潰,再也起不來了。

錯誤資訊:

./mongod &2018-08-16T10:03:06.975+0                                                                                                                                                 800 E STORAGE  [initandlisten] WiredTiger (11) [1534384986:970266][11744:0x7fbf2956fc80], evi                                                                                                                                                 ction-server: pthread_create: Resource temporarily unavailable
2018-08-16T10:03:06.979+0800 E STORAGE  [initandlisten] WiredTiger (11) [1534384986:979817][1                                                                                                                                                 1744:0x7fbf2956fc80], txn-recover: Recovery failed: Resource temporarily unavailable
2018-08-16T10:03:06.996+0800 I -        [initandlisten] Assertion: 28595:11: Resource tempora                                                                                                                                                 rily unavailable
2018-08-16T10:03:07.008+0800 I STORAGE  [initandlisten] exception in initAndListen: 28595 11:                                                                                                                                                  Resource temporarily unavailable, terminating
2018-08-16T10:03:07.010+0800 I CONTROL  [initandlisten] dbexit:  rc: 100

[2] 11773
[1]   Exit 100                ./mongod
[email protected]
:/alidata/server/mongodb/bin# 2018-08-16T10:09:45.105+0800 I CONT ROL [initandlisten] MongoDB starting : pid=11773 port=27017 dbpath=/data/db 64-bit host=iZuf 6egjg2v2grndob433aZ 2018-08-16T10:09:45.106+0800 I CONTROL [initandlisten] db version v3.2.8 2018-08-16T10:09:45.106+0800 I CONTROL [initandlisten] git version: ed70e33130c977bda0024c12 5b56d159573dbaf0 2018-08-16T10:09:45.106+0800 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1 14 Mar 2012 2018-08-16T10:09:45.106+0800 I CONTROL [initandlisten] allocator: tcmalloc 2018-08-16T10:09:45.106+0800 I CONTROL [initandlisten] modules: none 2018-08-16T10:09:45.106+0800 I CONTROL [initandlisten] build environment: 2018-08-16T10:09:45.106+0800 I CONTROL [initandlisten] distmod: ubuntu1404 2018-08-16T10:09:45.106+0800 I CONTROL [initandlisten] distarch: x86_64 2018-08-16T10:09:45.106+0800 I CONTROL [initandlisten] target_arch: x86_64 2018-08-16T10:09:45.106+0800 I CONTROL [initandlisten] options: {} 2018-08-16T10:09:45.163+0800 I - [initandlisten] Detected data files in /data/db creat ed by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. 2018-08-16T10:09:45.164+0800 I STORAGE [initandlisten] wiredtiger_open config: create,cache_ size=1G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(e nabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000 ),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
[email protected]
:/alidata/server/mongodb/bin# 2018-08-16T10:10:00.609+0800 E STOR AGE [initandlisten] WiredTiger (11) [1534385400:602908][11773:0x7f1f9dab9c80], eviction-serv er: pthread_create: Resource temporarily unavailable 2018-08-16T10:10:00.613+0800 E STORAGE [initandlisten] WiredTiger (11) [1534385400:613902][1 1773:0x7f1f9dab9c80], txn-recover: Recovery failed: Resource temporarily unavailable 2018-08-16T10:10:00.631+0800 I - [initandlisten] Assertion: 28595:11: Resource tempora rily unavailable 2018-08-16T10:10:00.643+0800 I STORAGE [initandlisten] exception in initAndListen: 28595 11: Resource temporarily unavailable, terminating 2018-08-16T10:10:00.646+0800 I CONTROL [initandlisten] dbexit: rc: 100

網上講刪除.lockwe檔案就好了,

再就是--repair 就好了。

還有chown許可權的問題

2。最後還是最後還是刪除storage.bson 就好了

從mongodb官網上看Storage Engines

The storage engine is the component of the database that is responsible for managing how data is stored, both in memory and on disk. MongoDB supports multiple storage engines, as different engines perform better for specific workloads. Choosing the appropriate storage engine for your use case can significantly impact the performance of your applications.

WiredTiger is the default storage engine starting in MongoDB 3.2. It is well-suited for most workloads and is recommended for new deployments. WiredTiger provides a document-level concurrency model, checkpointing, and compression, among other features. In MongoDB Enterprise, WiredTiger also supports Encryption at Rest.

MMAPv1 is the original MongoDB storage engine and is the default storage engine for MongoDB versions before 3.2. It performs well on workloads with high volumes of reads and writes, as well as in-place updates.

The In-Memory Storage Engine is available in MongoDB Enterprise. Rather than storing documents on-disk, it retains them in-memory for more predictable data latencies.

相關推薦

MongoDB 崩潰解決方案

1。這幾天mongodb經常重啟,今天直接崩潰,再也起不來了。 錯誤資訊: ./mongod &2018-08-16T10:03:06.975+0

12月11日發生大面積的包含 react-native-image-picker 的安卓專案啟動崩潰現象解決方案。(我的已經解決

12月11日,發生大面積的包含 react-native-image-picker 的安卓專案啟動崩潰現象。疑似原因為maven源丟失。解決方案見github:https://github.com/react-native-community/react-native-image-picke

PopupWindow中在彈出PopupWindow崩潰報錯解決方案

主要是popupWindow不能以第一個popupWindow中的view作為錨點View,要想實現popupWindow上再彈出popupWinow就要兩個都用Activity上的view作為錨點View就可以了,要實現的話就要把Activity中的view通過第一個pop

APP切換到後臺一段時間再切換到前臺app崩潰解決方案

崩潰,控制檯還不列印具體的異常資訊,怎麼辦?測試機紅米2a,RAM 1G。知道是記憶體回收了activity,但不知道怎麼解決。 在網上搜了很多文章,最後還是定位到了onsaveinstancestate();於是就各種在這上面做文章。 我的專案中一個MainActivit

docker沒有關閉重啟服務器報錯解決方案

docker● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)

Safari瀏覽器對設定的高度不起作用解決方案

發現 文字 one 底部對齊 設定 pan select標簽 pro prop 1、在做瀏覽器兼容的時候,發現select標簽在safari蘋果瀏覽器中的高度永遠都是默認的,這時候解決的辦法是加上line-height屬性就可以設置;2、但加上line-height屬性可以

超級用戶被幹掉。解決方案!!!

ID 資源 超級用戶 頁面 前端 type admin PE AD 1.在resource裏面。篩選default--粘貼復制所有數據, 2.在cip_admin_user_2_role裏面,找到91213工號。添加或更改超級用戶, 3.在cip_admin_roles裏面

表單的重復提交解決方案

alt window opened rip str -a color 機器碼 equal 表單的重復提交,解決方案: 第一種情況:在提交表單時,如果網速較差,可能會導致點擊提交按鈕多次: - 解決方法:點擊提交按鈕之後,使按鈕不可用。通過js完成: <script

Error:cannot import name'is_list_like' --python使用pandas_datareader時出現錯誤解決方案

nbsp class 之前 color error: code 修復 使用 comm   1 import pandas as pd 2 pd.core.common.is_list_like = pd.api.types.is_list_like 在下行代碼之前插入

訪問不了虛擬機 ubuntu中的myql解決方案

3.1 16px ping 百度一 ip地址 設置 綁定 ubun ont ============================================================== 1. 現象 2. 原因分析   2.1 訪問虛擬機中的mysql的前提

Python用Scrapy爬蟲報錯UnicodeEncodeError: 'gbk' codec can't encode character '\u2022' 解決方案

錯誤:UnicodeEncodeError: 'gbk' codec can't encode character '\u2022' in position 7: illegal multibyte sequence 解決:import io import sys sys.st

共享個人整理的Python問題有原始碼分析過程解決方案還有時間戳做間隔

  2018.10 #2018-10-23 15:48:47 October Tuesday the 43 week, the 296 day SZ 報錯 File "/Users/apple/Documents/ST/python/Python_test.py", li

mysql無法被遠端連結解決方案

使用“Ctrl + R”組合鍵快速開啟cmd視窗,並輸入“cmd”命令,開啟cmd視窗。 使用“mysql -uroot -proot”命令可以連線到本地的mysql服務。 使用“use mysql”命令,選擇要使用的資料庫,修改遠端連線的基本資訊,儲存在mysql資料庫中,因此使用mysql資料庫

如果出現context閃紅的情況解決方案

如果出現context閃紅的情況, <context:component-scan base-package="delivery" /> <context:property-placeholder location="file:#{systemProperties['webap

每隔幾秒查詢資料庫操作頻繁導致控制檯報錯too many connection解決方案連線池

原因:傳統的增刪改查已經滿足不了對資料庫的頻繁操作了; 解決方案:資料庫連線池-DBCP連線池 資料庫連線池-DBCP連線池 所需的jar包:  配置檔案: dbcpconfig.properties 這個檔案需要放在src的根目錄下面,和其他的包是同一個級別

PHP指令碼佔用記憶體太多解決方案

Fatal Error: Allowed memory size of xxxxxx bytes exhausted今天遇到伺服器很多自動任務的php指令碼佔用服務記憶體過多,並且程式不在運行了。解決方法:在執行PHP程式,通常會遇到“Fatal Error: Allowed memory size of x

win10與centos 7雙系統安裝win10引導消失解決方案

win10與centos 7雙系統安裝完成後,發現只能進centos 7系統,無win10啟動項。解決方案如下: 1、進入centos  7,聯網. 2、下載ntfs-3g安裝包。         sudo

org.apache.http不存在或找不到解決方案

Android 6.0不再支援 Apache HTTP client。 請使用 HttpURLConnection 代替。如果遇到之前老程式碼執行不起來或者報錯怎麼辦呢,又不想寫新的程式碼。 Error:(19, 23) 錯誤: 程式包org.apache.htt

workerman需要的php模組posix、pcntl、sysvshm、sysvmsg缺少解決方案

如果您的php是原始碼編譯,那麼請進到php的原始碼目錄,再進入ext目錄下,分別找到相應的php模組目錄,進行編譯 1. 假設php目錄為/usr/local/php, 進到相應的php模組目錄,執行 /usr/local/php/bin/phpize 接著執行

spring註解定時器啟動兩次解決方案

<?xml version="1.0" encoding="utf-8" ?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/