There are two following options in Java HotSpot VM Options:
-XX:OnError="<cmd args>;<cmd args>" Run user-defined commands on fatal error. (Introduced in 1.4.2 update 9.)
-XX:OnOutOfMemoryError="<cmd args>;
<cmd args>" Run user-defined commands when an OutOfMemoryError is first thrown. (Introduced in 1.4.2 update 12, 6)
As far as I can see there are no such options in IBM JVM.
Is it correct?
I need to call some shell script in case if heap dump was generated.
What is the simplest way to do it?