So I tried with the suggested options. here are the results :
No Fatal error log file generated, so no jvm crash happened.
Tried the -XX:+HeapDumpOnOutOfMemoryError and heap dump was generated when the application crashed and restarted but there are no outofmemory logs in the application logs.
Also i have deployed the application in cloud foundry and cloud foundry also doesn't show the crash reason as out of memory as it should show in case of OOM. But as heap dump is generated, it is giving an indication that OOM is happening but doesn't look like heap.
... View more