# Exception: java.lang.OutOfMemoryError: Java heap space

**URL:** https://discuss.elastic.co/t/exception-java-lang-outofmemoryerror-java-heap-space/265880
**Category:** Elasticsearch
**Created:** [March 1, 2021, 10:49pm UTC](https://discuss.elastic.co/t/exception-java-lang-outofmemoryerror-java-heap-space/265880 "2021-03-01T22:49:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ifernand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ifernand/32/84767_2.png) [@ifernand](https://discuss.elastic.co/u/ifernand)
#### Post date: [March 1, 2021, 10:49pm UTC](https://discuss.elastic.co/t/exception-java-lang-outofmemoryerror-java-heap-space/265880/1 "2021-03-01T22:49:16Z")

</div>

Hi.  
I am running ElasticSearch 6.1.3 in a Liferay Installation and I am facing an Exception "java.lang.OutOfMemoryError: Java heap space" that is causing malfunction in Liferay portal.

That's the information I have collected:

```auto
    curl -X GET "http://pvmtelastila1:9200/"
    {
      "name" : "pvmtelastila1",
      "cluster_name" : "LiferayCluster",
      "cluster_uuid" : "K2FHedK2T9ulV5bbznxOWw",
      "version" : {
        "number" : "6.1.3",
        "build_hash" : "af51318",
        "build_date" : "2018-01-26T18:22:55.523Z",
        "build_snapshot" : false,
        "lucene_version" : "7.1.0",
        "minimum_wire_compatibility_version" : "5.6.0",
        "minimum_index_compatibility_version" : "5.0.0"
      },
      "tagline" : "You Know, for Search"
    }

```

```auto
    curl -X GET "http://pvmtelastila1:9200/_cat/nodes?v"
    ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
    172.28.162.212 35 71 5 0.01 0.04 0.05 mdi - pvmtelastila3
    172.28.162.211 19 63 4 0.00 0.01 0.05 mdi - pvmtelastila2
    172.28.162.210 59 50 8 0.16 0.21 0.22 mdi * pvmtelastila1

```

```auto
    curl -X GET "http://pvmtelastila1:9200/_cat/health?v"
    epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time acti ve_shards_percent
    1614635607 22:53:27 LiferayCluster red 3 3 258 130 0 0 3 0 - 98.9%

```

```auto
    curl -X GET "http://pvmtelastila1:9200/_cat/indices/*?v&s=index&pretty"
    health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
    green open .monitoring-alerts-6 R46WydaSTQCmZTz6O0gFaQ 1 1 2 0 24.6kb 12.3kb
    ... too many entries green
    green open liferay-0 5qwi-dGDQ1iZ2FhPG9NQnw 1 0 266 0 1.5mb 1.5mb
    red open liferay-20116 -G9G1dlDT_ilL1g9QGbtbQ 2 1 4336017 485652 26.9gb 26.9gb

```

Any suggestions are appreciated.

Regards.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [March 2, 2021, 2:03am UTC](https://discuss.elastic.co/t/exception-java-lang-outofmemoryerror-java-heap-space/265880/2 "2021-03-02T02:03:57Z")

</div>

Welcome to our community! 😃  
Please be aware that 6.3 reached [EOL](https://www.elastic.co/support/eol) in late 2019. You should upgrade as a matter of urgency.

There should be something in your Elasticsearch logs for this, can you post them?

---

<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: [March 30, 2021, 2:04am UTC](https://discuss.elastic.co/t/exception-java-lang-outofmemoryerror-java-heap-space/265880/3 "2021-03-30T02:04:04Z")

</div>

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