Mongodb startup warnings after update or install
if u get this error
---------------------------------------------------
solve
sudo gedit /etc/rc.local
add these lines after exit 0
restart pc
--------------------------------------------------------------------------------
enjoy..............................................................................................................
MongoDB shell version: 3.0.1
connecting to: test
Server has startup warnings:
2015-04-03T13:37:53.536+0530 I CONTROL [initandlisten]
2015-04-03T13:37:53.536+0530 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2015-04-03T13:37:53.536+0530 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2015-04-03T13:37:53.536+0530 I CONTROL [initandlisten]
2015-04-03T13:37:53.537+0530 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2015-04-03T13:37:53.537+0530 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2015-04-03T13:37:53.537+0530 I CONTROL [initandlisten]
---------------------------------------------------
solve
sudo gedit /etc/rc.local
add these lines after exit 0
if test -f /sys/kernel/mm/transparent_hugepage/khugepaged/defrag; then
echo 0 > /sys/kernel/mm/transparent_hugepage/khugepaged/defrag
fi
if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
echo never > /sys/kernel/mm/transparent_hugepage/defrag
fi
if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
restart pc
--------------------------------------------------------------------------------
enjoy..............................................................................................................
Comments
Post a Comment