| 123456789101112131415 | [[max-number-of-threads]]=== Number of threadsElasticsearch uses a number of thread pools for different types of operations.It is important that it is able to create new threads whenever needed. Makesure that the number of threads that the Elasticsearch user can create is atleast 4096.This can be done by setting <<ulimit,`ulimit -u 4096`>> as root beforestarting Elasticsearch, or by setting `nproc` to `4096` in<<limits.conf,`/etc/security/limits.conf`>>.The package distributions when run as services under `systemd` will configurethe number of threads for the Elasticsearch process automatically. Noadditional configuration is required.
 |