title: -XX:OnOutOfMemoryError doesn't work for java.lang.OutOfMemoryError: unable to create new native thread
body: <p>I use -XX:OnOutOfMemoryError=\"kill -9 %p\". It works for most of out of memory cases, but it doesn't kill the process for java.lang.OutOfMemoryError: unable to create new native thread. </p>