In as post a little while back, I posted a "different" way to parse/ interpret a byte array: http://groups.google.com/group/javaposse/browse_thread/thread/f610e8169f5c417b/bccd9bb1dfa67905?lnk=gst&q=unsafe#bccd9bb1dfa67905
I believe if you use the same technique, but does something silly like $.putAddress(0, 0) you would trigger a core dump (on a Sun JVM). /Casper On Aug 25, 6:54 pm, zheismann <[email protected]> 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 "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
