Our Java Application is working fine on RHEL 8.5 OS platform. In our application, we have provided enough heap space which is "2048m". Even though, we encountered a heap.dump file on Jan 2023. We analyzed the heap.dump file and found that it was a NACACK error.
Post that, without deleting the heap.dump file, we just rebooted the server and our application starts to work fine. Within a few weeks, we ended up with another problem,
java.lang.OutOfMemoryError: GC overhead limit exceeded
Dumping heap to /XYZ/jboss/server/log/heap.dump ...
Unable to create /XYZ/jboss/server/log/heap.dump: File exists.
Please find the below queries,
- Whether the reboot of the server with the presence of heap.dump file will clear the heap memory area entirely?
- Did the new error is because of the non-clearance of the previous heap.dump file?
- What are the possibilities to get the above error so quickly?
Thanks.