# How can I increase the JVM via API or CLI

**URL:** <https://discuss.elastic.co/t/how-can-i-increase-the-jvm-via-api-or-cli/335443>\
**Category:** Kibana\
**Created:** [June 7, 2023, 1:23pm UTC](https://discuss.elastic.co/t/how-can-i-increase-the-jvm-via-api-or-cli/335443 "2023-06-07T13:23:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![c.j.t](https://avatars.discourse-cdn.com/v4/letter/c/b5e925/32.png) [@c.j.t](https://discuss.elastic.co/u/c.j.t)\
**Post date:** [June 7, 2023, 1:23pm UTC](https://discuss.elastic.co/t/how-can-i-increase-the-jvm-via-api-or-cli/335443/1 "2023-06-07T13:23:08Z")

</div>

I've an instance on AWS Opensearch Service that is has a circuit breaking exception, from reading I think increasing the jvm should work but all the examples seem to tell me to edit the yml - which I can't do - I can use the API or CLI but not sure which commands to send

```auto
"error" : {
    "root_cause" : [
      {
        "type" : "circuit_breaking_exception",
        "reason" : "[parent] Data too large, data for [<http_request>] would be [2031469520/1.8gb], which is larger than the limit of [2023548518/1.8gb], real usage: [2031469520/1.8gb], new bytes reserved: [0/0b], usages [request=98304/96kb, fielddata=0/0b, in_flight_requests=949822/927.5kb, accounting=217603288/207.5mb]",
        "bytes_wanted" : 2031469520,
        "bytes_limit" : 2023548518,
        "durability" : "PERMANENT"
      }
    ]

```

---

<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 7, 2023, 1:23pm UTC](https://discuss.elastic.co/t/how-can-i-increase-the-jvm-via-api-or-cli/335443/2 "2023-06-07T13:23:08Z")

</div>

OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [June 7, 2023, 1:27pm UTC](https://discuss.elastic.co/t/how-can-i-increase-the-jvm-via-api-or-cli/335443/3 "2023-06-07T13:27:12Z")

</div>

Hello and welcome,

Opensearch is not supported here, you need to check on an AWS or Opensearch forum.

But, it is not possible to increase the heap using any API or CLI, you would need to edit the `jvm.options` file and restart your service, this is how it works with Elasticsearch.

---

<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:** [July 5, 2023, 1:27pm UTC](https://discuss.elastic.co/t/how-can-i-increase-the-jvm-via-api-or-cli/335443/4 "2023-07-05T13:27:47Z")

</div>

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