在mongodb索引创建过程中,机器变得非常慢。 "顶"命令显示mongodb使用98%的RAM。我已经关闭了ssh会话,之后我就不能再通过ssh登录了。
系统信息:
Ubuntu 14.04.4
8 GB RAM
2.7 TB free on HDD
MongoDB信息:
> db.stats();
{
"db" : "poi",
"collections" : 11,
"objects" : 68429619,
"avgObjSize" : 480.50437612402897,
"dataSize" : 32880731386,
"storageSize" : 14584963072,
"numExtents" : 0,
"indexes" : 55,
"indexSize" : 5711147008,
"ok" : 1
}
这是什么意思?这可能是原因吗?
MongoDB shell version: 3.2.5
connecting to: test
Server has startup warnings:
2016-06-01T07:51:38.371+0000 I CONTROL [initandlisten]
2016-06-01T07:51:38.371+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2016-06-01T07:51:38.371+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2016-06-01T07:51:38.371+0000 I CONTROL [initandlisten]
2016-06-01T07:51:38.372+0000 I CONTROL [initandlisten]
2016-06-01T07:51:38.372+0000 I CONTROL [initandlisten] ** WARNING: You are running on a NUMA machine.
2016-06-01T07:51:38.373+0000 I CONTROL [initandlisten] ** We suggest launching mongod like this to avoid performance problems:
2016-06-01T07:51:38.373+0000 I CONTROL [initandlisten] ** numactl --interleave=all mongod [other options]
2016-06-01T07:51:38.373+0000 I CONTROL [initandlisten]
2016-06-01T07:51:38.373+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2016-06-01T07:51:38.373+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2016-06-01T07:51:38.373+0000 I CONTROL [initandlisten]
2016-06-01T07:51:38.373+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2016-06-01T07:51:38.373+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2016-06-01T07:51:38.373+0000 I CONTROL [initandlisten]