I have a fresh installation of Ubuntu 16.04 and I installed elasticsearch 5 on it. Now when I try to start elasticsearch using
After a few seconds in the log file I read:
[2016-11-19T08:47:31,442][ERROR][o.e.b.Bootstrap ] [shooter-1] node validation exception bootstrap checks failed max number of threads  for user [elasticsearch] likely too low, increase to at least 
After some googling, I came to the conclusion that I had to add the following line to
elasticsearch - nproc 2048
However, even after this change, I still get the same error.
I found a suggestion to uncomment the line
session required pam_limits.so
/etc/pam.d/su, but that line was already uncommented.
What am I missing?