I am using the Java Out-of-Memory heap dump parameter (-XX:+HeapDumpOnOutOfMemoryError
) to help diagnose issues with my application crashing due to out of memory errors. However, I am having trouble finding the heap dumps in the path that I specified (-XX:HeapDumpPath=/my-app/dumps
).
I have verified that the parameter is being passed correctly. However, when my application crashes, no heap dumps are generated in the specified path.
This is a problem for me because my app crashes all the time due to out of memory errors, and I need to analyze the heap dumps to understand the root cause of the issue.
If anyone has any suggestions on how I can troubleshoot this problem, I would greatly appreciate your input.