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

(tomer zaks) #1

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
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.

Elastic too many open files
Docs: nofile or nproc?
Docs: nofile or nproc?
(Jason Tedor) #2

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

(system) #3

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