I have a spring boot application which is crashing on cloud foundry with no evident logs for crash. The application has 3 instances and any of the three instances crash some times twice a day and some times once in two days. There is no defined pattern for the crash.
I have tried adding the following java params with the results as mentioned : -XX:ErrorFile : No file got created on error -XX:+HeapDumpOnOutOfMemoryError : Heap dump is created when the instance crashes.
Heap dump is created when instance crashes but there are no OOM logs.
I also tried adding embedded tomcat logs for spring boot application with the following packages added : org.apache.tomcat, org.apache.catalina, org.apache.coyote. Tried creating an OOM locally in docker and could see that OOM log is coming in the tomcat logs for the application.
Just to clarify, The problem is how to find which component of memory is responsible for OOM?