[solved-MonggoDB] I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always’.

For more comprehensive documentation, see
        http://docs.mongodb.org/
Questions? Try the support group
        http://groups.google.com/group/mongodb-user
Server has startup warnings:
2015-12-21T00:52:05.494+0000 I CONTROL  [initandlisten]
2015-12-21T00:52:05.494+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2015-12-21T00:52:05.494+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2015-12-21T00:52:05.494+0000 I CONTROL  [initandlisten]
2015-12-21T00:52:05.494+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2015-12-21T00:52:05.494+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2015-12-21T00:52:05.494+0000 I CONTROL  [initandlisten]
>  I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.

To resolve this problem, Change etc/rc.local add this line before exit(); code:

if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
  echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi

if test -f /sys/kernel/mm/transparent_hugepage/defrag; then
   echo never > /sys/kernel/mm/transparent_hugepage/defrag
fi

after all restart your server.. good luck🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s