<commit_before>[[max-number-of-threads]]
=== Number of threads

Elasticsearch uses a number of thread pools for different types of operations.
It is important that it is able to created new threads whenever needed.   Make
sure that the number of threads that the Elasticsearch user can create is at
least 2048.

This can be done by setting <<ulimit,`ulimit -u 2048`>> as root before
starting Elasticsearch, or by setting `nproc` to `2048` in
<<limits.conf,`/etc/security/limits.conf`>>.
<commit_msg>Fix typos in threads docs<commit_after>[[max-number-of-threads]]
=== Number of threads

Elasticsearch uses a number of thread pools for different types of operations.
It is important that it is able to create new threads whenever needed.   Make
sure that the number of threads that the Elasticsearch user can create is at
least 2048.

This can be done by setting <<ulimit,`ulimit -u 2048`>> as root before
starting Elasticsearch, or by setting `nproc` to `2048` in
<<limits.conf,`/etc/security/limits.conf`>>.

{'fraction_non_alphanumeric': 0.08325074331020813, 'fraction_numerical': 0.023785926660059464, 'mean_word_length': 4.706214689265536, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6952508', 'n_tokens_mistral': 303, 'n_tokens_neox': 285, 'n_words': 140}