How To
Summary
How to increase Elasticsearch Heap size memory in Custom Edition
Objective
When ElasticSearch heap size hits the limit, the pods restarts frequently . When checking the logs could see that Java heap out of memory errors
Environment
Self-Hosted Custom Edition (K8s or OCP)
Steps
Edit the elasticsearch.yaml and apply the changes or edit the Elasticsearch CRD directly. This is the spec example:
spec:
nodeSets:
- name: default
count: 3
podTemplate:
spec:
containers:
- name: elasticsearch
resources:
requests:
memory: 4Gi
limits:
memory: 4Gi
env:
- name: ES_JAVA_OPTS
value: "-Xms2g -Xmx2g"
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB67","label":"IT Automation \u0026 App Modernization"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSE1JP5","label":"IBM Instana Observability Self-Hosted"},"ARM Category":[{"code":"a8m3p000000UoUVAA0","label":"Backend On-Prem"}],"ARM Case Number":"TS017740140","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]
Product Synonym
Instana
Was this topic helpful?
Document Information
Modified date:
24 January 2025
UID
ibm17177246