This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Troubleshooting
editTroubleshooting
editCapture a JVM heap dump
editFor advanced troubleshooting you might need to capture a JVM heap dump. By default, the Enterprise Search Docker image is not configured to run with a data volume by the ECK operator. However, you can write a heap dump to the tmp
directory that Enterprise Search uses. Note that your heap dump will be lost if you do not extract it before the container restarts.
kubectl exec $POD_NAME -- bash -c \ 'jmap -dump:format=b,file=tmp/heap.hprof $(jps| grep Main | cut -f 1 -d " ")' # The Enterprise Search Docker images don't have tar installed so we cannot use kubectl cp kubectl exec $POD_NAME -- cat /usr/share/enterprise-search/tmp/heap.hprof | gzip -c > heap.hprof.gz # Remove the heap dump from the running container to free up space kubectl exec $POD_NAME -- rm /usr/share/enterprise-search/tmp/heap.hprof