Is there a way to fetch the JIT compilation failures in a running jvm?
In that running jvm, using jstat it is possible to fetch the last failed compilations. But I want to see all the failed compilations since restart. 20+ failures since the restart.
I can enable PrintCompilation, but for that I've to restart the server. In my case, it is needed to check the failures without restarting the servers.
Analysis reason: There is a sudden spike in memory used. Approx 2GB. Suspecting some heavy compilation done by JIT. Based on my past experiences, such heavy compilations have failed with COMPILER OUT OF NODES reason.
Randomness is there in this memory issue occurrence. If I restart the server it may not happen again.