# OutOfMemoryError: unable to create new native thread

**URL:** <https://discuss.elastic.co/t/outofmemoryerror-unable-to-create-new-native-thread/245079>\
**Category:** Elasticsearch\
**Created:** [August 15, 2020, 7:36am UTC](https://discuss.elastic.co/t/outofmemoryerror-unable-to-create-new-native-thread/245079 "2020-08-15T07:36:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goutham\_Pratapa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goutham_pratapa/32/70208_2.png) [@Goutham\_Pratapa](https://discuss.elastic.co/u/Goutham_Pratapa)\
**Post date:** [August 15, 2020, 7:36am UTC](https://discuss.elastic.co/t/outofmemoryerror-unable-to-create-new-native-thread/245079/1 "2020-08-15T07:36:09Z")

</div>

Hi all,

I am relatively new to ElasticSearch and I Am running into this issue almost every day in my machine.

The following are details about my hardware.

```auto
$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 4126117
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 4096
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

Ram is 1007GB

```

Output of:

```auto
curl -XGET " localhost:9200/_nodes/thread_pool?pretty"

```

is as follows;

```auto
"thread_pool" : {
        "watcher" : {
          "type" : "fixed",
          "min" : 80,
          "max" : 80,
          "queue_size" : 1000
        },
        "force_merge" : {
          "type" : "fixed",
          "min" : 1,
          "max" : 1,
          "queue_size" : -1
        },
        "security-token-key" : {
          "type" : "fixed",
          "min" : 1,
          "max" : 1,
          "queue_size" : 1000
        },
        "ml_datafeed" : {
          "type" : "fixed",
          "min" : 20,
          "max" : 20,
          "queue_size" : 200
        },
        "fetch_shard_started" : {
          "type" : "scaling",
          "min" : 1,
          "max" : 160,
          "keep_alive" : "5m",
          "queue_size" : -1
        },
        "listener" : {
          "type" : "fixed",
          "min" : 10,
          "max" : 10,
          "queue_size" : -1
        },

```

I have increased the Heapsize as well in `jvm.options`

```auto
-Xms31g
-Xmx31g

```

Can anybody help me in understanding the issue in my machine or my ES setup?

ES-version: `6.8 `

Thanks in advance

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 12, 2020, 7:36am UTC](https://discuss.elastic.co/t/outofmemoryerror-unable-to-create-new-native-thread/245079/2 "2020-09-12T07:36:12Z")

</div>

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