Yeah, this a very simple way. On Friday, March 28, 2014 at 3:54:07 PM UTC+5:30, Casey wrote: > > If you are on Linux you can make JVM crash by sending a signal to java > process. For example to crash JVM from console you can call: > kill -SIGBUS <your PID> > > Regards > > On Wednesday, August 25, 2010 6:54:16 PM UTC+2, zheismann wrote: >> >> I'd like to be able to force a core dump of a running java process in >> order to test the OnError handling. Does anyone know how to >> accomplish this? >> >> For example, I am starting up an application server using these >> arguments and I want to verify my script will be executed as expected. >> >> JAVA_OPTS="$JAVA_OPTS -XX:OnError="$APPSERVER_HOME/bin/ >> runAfterCoreDump.sh %p"" >> JAVA_HOME/bin/java $JAVA_OPTS com.corporation.Main >> >> Thanks! >> >
-- You received this message because you are subscribed to the Google Groups "Java Posse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/javaposse. For more options, visit https://groups.google.com/d/optout.
