我们在mongo下执行db.remove({})或db.drop()时虽然表面上可以删掉数据但此时内存并没有释放,我们可以通过db.repairDatabase()指令来释放内存,使用mongostat查看内存。