# Two instance of es is failing unexpectedly error code 137

**URL:** <https://discuss.elastic.co/t/two-instance-of-es-is-failing-unexpectedly-error-code-137/360631>\
**Category:** Elasticsearch\
**Created:** [May 31, 2024, 2:19pm UTC](https://discuss.elastic.co/t/two-instance-of-es-is-failing-unexpectedly-error-code-137/360631 "2024-05-31T14:19:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nagkumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nagkumar/32/134503_2.png) [@nagkumar](https://discuss.elastic.co/u/nagkumar)\
**Post date:** [May 31, 2024, 2:19pm UTC](https://discuss.elastic.co/t/two-instance-of-es-is-failing-unexpectedly-error-code-137/360631/1 "2024-05-31T14:19:06Z")

</div>

two instance of Elasticsearch are failing to start

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/6/d6bff4222cad0fa8ca83706d194822fa5f7b1cb6.png)

any clues why it says unexpected exit..

---

<div class="post-metadata">

**Author:** ![nagkumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nagkumar/32/134503_2.png) [@nagkumar](https://discuss.elastic.co/u/nagkumar)\
**Post date:** [May 31, 2024, 2:52pm UTC](https://discuss.elastic.co/t/two-instance-of-es-is-failing-unexpectedly-error-code-137/360631/2 "2024-05-31T14:52:48Z")

</div>

```auto
  cmn-es:
    container_name: app-cmn-es
    environment:
      ELASTIC_PASSWORD: changeme
      ELASTIC_USERNAME: elastic
      bootstrap.memory_lock: "true"
      discovery.type: single-node
      http.port: "19200"
      node.name: app-cmn-es
      xpack.security.enabled: "true"
      xpack.security.http.ssl.enabled: "false"
    hostname: cmn-es
    healthcheck:
      test:
        - CMD-SHELL
        - curl -s http://cmn-es:19200//_cat/health -u elastic:changeme | grep -E 'green|100%' || echo 'Health check failed'
      timeout: 10s
      interval: 15s
      retries: 5
      start_period: 30s
    image: elasticsearch:8.13.4
    networks:
      es-lan-app: null
    ports:
      - mode: ingress
        target: 19200
        published: "19200"
        protocol: tcp
    volumes:
      - type: bind
        source: c:/temp/junk2/app-cmn-es/data
        target: /usr/share/es/data
        bind:
          create_host_path: true

```

this is one defination

---

<div class="post-metadata">

**Author:** ![nagkumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nagkumar/32/134503_2.png) [@nagkumar](https://discuss.elastic.co/u/nagkumar)\
**Post date:** [May 31, 2024, 2:53pm UTC](https://discuss.elastic.co/t/two-instance-of-es-is-failing-unexpectedly-error-code-137/360631/3 "2024-05-31T14:53:35Z")

</div>

```auto
  cmn-es:
    container_name: esn-auto-cmn-es
    environment:
      ELASTIC_PASSWORD: changeme
      ELASTIC_USERNAME: elastic
      bootstrap.memory_lock: "true"
      discovery.type: single-node
      http.port: "9200"
      node.name: esn-auto-cmn-es
      xpack.security.enabled: "true"
      xpack.security.http.ssl.enabled: "false"
    hostname: cmn-es
    healthcheck:
      test:
        - CMD-SHELL
        - curl -s http://cmn-es:9200//_cat/health -u elastic:changeme | grep -E 'green|100%' || echo 'Health check failed'
      timeout: 10s
      interval: 15s
      retries: 5
      start_period: 30s
    image: elasticsearch:8.13.4
    networks:
      es-lan-esn-auto: null
    ports:
      - mode: ingress
        target: 9200
        published: "9200"
        protocol: tcp
    volumes:
      - type: bind
        source: c:/temp/junk2/esn-auto-cmn-es/data
        target: /usr/share/es/data
        bind:
          create_host_path: true

```

this is another defination

---

<div class="post-metadata">

**Author:** ![nagkumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nagkumar/32/134503_2.png) [@nagkumar](https://discuss.elastic.co/u/nagkumar)\
**Post date:** [May 31, 2024, 2:54pm UTC](https://discuss.elastic.co/t/two-instance-of-es-is-failing-unexpectedly-error-code-137/360631/4 "2024-05-31T14:54:27Z")

</div>

Exited one shows

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/3/63d40ed1cd87446e00b8de9dd348e8958b1051a3.png)

Unexpected Error.. 137

---

<div class="post-metadata">

**Author:** ![nagkumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nagkumar/32/134503_2.png) [@nagkumar](https://discuss.elastic.co/u/nagkumar)\
**Post date:** [May 31, 2024, 3:12pm UTC](https://discuss.elastic.co/t/two-instance-of-es-is-failing-unexpectedly-error-code-137/360631/5 "2024-05-31T15:12:11Z")

</div>

Got the solution.. this was a memory issue

` - ES_JAVA_OPTS=-Xms750m -Xmx750m`  
this has taken care

---

<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:** [June 28, 2024, 3:12pm UTC](https://discuss.elastic.co/t/two-instance-of-es-is-failing-unexpectedly-error-code-137/360631/6 "2024-06-28T15:12:18Z")

</div>

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