MONGO Warning:
2016-09-05t10:55:13.241+0800 I CONTROL [initandlisten] * * WARNING:/sys/kernel/mm/transparent_hugepage/enabled is ' Always '.
2016-09-05t10:55:13.241+0800 I CONTROL [initandlisten] * * We suggest setting it to ' never '
2016-09-05t10:55:13.241+0800 I CONTROL [Initandlisten]
2016-09-05t10:55:13.241+0800 I CONTROL [initandlisten] * * WARNING:/sys/kernel/mm/transparent_hugepage/defrag is ' Always '.
2016-09-05t10:55:13.241+0800 I CONTROL [initandlisten] * * We suggest setting it to ' never '
It is not difficult to solve this problem at runtime, just modify the hugepage settings. Execute the following two commands
Echo Never >>/sys/kernel/mm/transparent_hugepage/enabled
Echo Never >>/sys/kernel/mm/transparent_hugepage/defrag
Don't forget to restart your MongoDB, this warning disappears. However, the next time you restart the system, these settings will disappear.