OnOutOfMemoryError
Hi All ,
I have a situation where we get an OutOfMemory error. I want to create a thread dump when that condition occurs.
I was thinking of going with the following java startup parameter
-XX:OnOutOfMemoryError="kill -3 pid"
-verbose:gc -Xmx1024M -Xms512M -XX:MaxPermSize=128M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB -XX:+PrintGCDetails -XX:+PrintClassHistogram -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError="kill -3 pid"
Will that work? Will it grab the pid automatically or do I need to supply it?
thanks and regards
Jason