We are sometimes getting an OutOfMemoryError in production and I would like to be able to analyse what caused the problem, or at least what was going on when it occurred. It seems that I should be able to get an HProf profile by using the -XX:+HeapDumpOnOutOfMemoryError option, but I have read that this is JVM specific.
Has anyone successfully used this option with Oracle Application Server v10.1.2.0.2? If so, do you have any tips on how to analyse the resulting file?