Below is the cat of my /etc/security/limits.conf file
#* soft core 0 #* hard rss 10000 #@student hard nproc 20 #@faculty soft nproc 20 #@faculty hard nproc 50 #ftp hard nproc 0 #@student - maxlogins 4 * hard nofile 262144 * hard nproc 2048 * hard as unlimited
but I am getting the following error when I start elasticsearch
ERROR: bootstrap checks failed max number of threads  for user [user1] likely too low, increase to at least  max virtual memory areas vm.max_map_count  likely too low, increase to at least 
I run elasticsearch 5.0GA. How can I fix this?