After adding "elasticsearch - nofile 65536" still not enough threads are allocated

Hi everyone,

I am getting an error "max number of threads [1024] for user [elasticsearch] is too low, increase to at least [2048]"

I opened this manual and tried the following:

After trying:
"sudo su
ulimit -n 65536
su elasticsearch "
I get an error:
"This account is currently not available."

After trying to add "elasticsearch - nofile 65536" to /etc/security/limits.conf the problem doesnt move.

After trying to add
"[Service]
LimitMEMLOCK=infinity"
to "/etc/systemd/system/elasticsearch.service.d/elasticsearch.conf" the file does not save.

currently I am stuck on starting the ES.

Will be grateful for any help,
Many Thanks,
Tomer Zaks.

You want nproc, not nofile, and you shouldn't increase it that high, 2048 like the message says will be plenty.

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.