mongo服务启动特别慢,每次启动要2个多小时,哪位大侠帮忙看下,是什么原因?怎么解决?
数据总共300G,服务器是64G内存,16核的虚拟机。
总共有800个db。
启动时就卡在
2019-01-01T14:00:38.494+0800 I STORAGE [initandlisten] wiredtiger_open config: 这一步不动了。
启动日志如下:
2019-01-01T14:00:38.474+0800 I CONTROL [initandlisten] OpenSSL version: OpenSSL 0.9.8j-fips 07 Jan 2009
2019-01-01T14:00:38.474+0800 I CONTROL [initandlisten] allocator: tcmalloc
2019-01-01T14:00:38.474+0800 I CONTROL [initandlisten] modules: none
2019-01-01T14:00:38.474+0800 I CONTROL [initandlisten] build environment:
2019-01-01T14:00:38.474+0800 I CONTROL [initandlisten] distmod: suse11
2019-01-01T14:00:38.474+0800 I CONTROL [initandlisten] distarch: x86_64
2019-01-01T14:00:38.474+0800 I CONTROL [initandlisten] target_arch: x86_64
2019-01-01T14:00:38.474+0800 I CONTROL [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "x.x.x.x", port: xxxx }, processManagement: { fork: true, pidFilePath: "/var/run/mongodb/mongod.pid" }, security: { authorization: "enabled" }, storage: { dbPath: "/mnt/mongodb", directoryPerDB: true, journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "/var/log/mongodb/mongod.log" } }
2019-01-01T14:00:38.494+0800 I - [initandlisten] Detected data files in /mnt/mongodb created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2019-01-01T14:00:38.494+0800 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=32G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2019-01-01T16:14:11.001+0800 I CONTROL [initandlisten]
2019-01-01T16:14:11.001+0800 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2019-01-01T16:14:11.001+0800 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2019-01-01T16:14:11.001+0800 I CONTROL [initandlisten]
2019-01-01T16:14:11.001+0800 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2019-01-01T16:14:11.001+0800 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2019-01-01T16:14:11.001+0800 I CONTROL [initandlisten]
2019-01-01T16:14:11.001+0800 I CONTROL [initandlisten] ** WARNING: soft rlimits too low. rlimits set to 64000 processes, 640000 files. Number of processes should be at least 320000 : 0.5 times number of files.
2019-01-01T16:14:11.001+0800 I CONTROL [initandlisten]
2019-01-01T16:15:48.891+0800 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/mnt/mongodb/diagnostic.data'