kksaha
1
Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Opensearch version - v2.2.0
Describe the issue:
Opensearch dashboard pod got restarted with following fatal error
FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory
How we can increase the java heap memory. We couldn’t find an option to set it up.
opensearch-dashboards@observability-opensearch-dashboards-67db5bf955-8h6rv:~$ env|grep -i java
opensearch-dashboards@observability-opensearch-dashboards-67db5bf955-8h6rv:~$
Could you please suggest how to increase and verify the java heap memory on dashboard.
Thanks,
Kishore
pablo
2
@kksaha I never had such an error in OpenSearch Dashboards.
What resources did you assign to the OpenSearch Dashboards pod? Did you use helm charts?
kksaha
3
Thanks @pablo for your response.Yes, we are using helm chart with following resource limit.
resources:
requests:
cpu: "100m"
memory: "512M"
limits:
cpu: "4"
memory: "8Gi"
pablo
5
@kksaha Thanks for sharing the link. Did you try that solution?
kksaha
6
@pablo Sorry for delay in response, yesI tried and it worked.
Is there a way to check if the value was taken into effect in my case I increased it to max-old-space-size=20480 i.e. 20 GBs still seeing this error.