title: Max file descriptors [4096] for elasticsearch process is too low when started ELASTICSEARCH
body: <p>When I start elasticseach, I am getting this Warning:</p>
  
  <pre><code>[2018-08-05T15:04:27,370][WARN ][o.e.b.BootstrapChecks    ] [bDyfvVI] max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
  </code></pre>
  
  <p>I have set the needed value to 65536 as running through this tutorial <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/file-descriptors.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/elasticsearch/reference/current/file-descriptors.html</a>. I have also tried these steps:</p>
  
  <pre><code>Check ulimit -n, it would be 4096.
  
  Edit /etc/security/limits.conf and add following lines:
  
  *    soft nofile 65536
  
  *    hard nofile 65536
  
  root soft nofile 65536
  
  root hard nofile 65536
  Edit /etc/pam.d/common-session and add this line session required pam_limits.so
  Edit /etc/pam.d/common-session-noninteractive and add this line session required pam_limits.so
  Reload session and check for ulimit -n, it would be 65536.
  </code></pre>
  
  <p>Unfortunately I am still getting this warning. Can someone help me why?</p>