崩溃前弹出提示框

Sun JVM: -XX:+ShowMessageBoxOnError

JRockit JVM: -Djrockit.waitonerror

内存溢出时转储内存堆栈

-XX:+HeapDumpOnOutOfMemoryError

崩溃后自动执行相关命令

Sun JVM:

-XX:OnError=”;

-Xcheck:jni 检查JNI本机代码

例如:

-XX:OnError="gcore %p; dbx - %p"
  -XX:OnError="gdb %p"
  -XX:OnError="pmap %p"
 

参考资料

Java 6 JVM参数选项大全(中文版)【转】http://www.beansoft.biz/?p=2923

Java TM 2 Platform, Standard Edition 5.0 Troubleshooting and Diagnostic Guide http://java.sun.com/j2se/1.5/pdf/jdk50_ts_guide.pdf

Troubleshooting Guide for Java SE 6 with HotSpot VM http://www.oracle.com/technetwork/java/javase/toc-135973.html

http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

转载请注明:WebLogic Android 博客 » JVM崩溃相关的几个参数:-XX:+ShowMessageBoxOnError,-XX:OnError等