How can I increase the JVM via API or CLI

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

"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"
      }
    ]

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: )

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.

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