Optimizing kernel settings for MongoDB

All changes to kernel settings are made through /etc/sysctl.conf. You can apply the settings using the sudo sysctl -p command.

vm.max_map_count = 999999 # number of memory regions kernel.pid_max = 999999 # pid space

fs.file-max = 20000000 # number of file descriptors