摘要:
java程序运行时,有时会产生javacore及heapdump文件,为什么会产生这些文件呢?产生后应该如何分析呢?本文将回答上面的问题。java程序在遇到致命问题时,就会产生这两个文件,有时产生时,java应用不会死掉,还能继续运行,有时则java进程会死掉,即java进程被杀死。为了能够保留java应用发生致命错误前的java的运行状态,jvm在死掉前产生两个文件,分别为javacore及heapdump文件。javacore文件主要保存的是java应用各线程在某一时刻的运行的位置,即执行到哪一个类的哪一个方法哪一个行上。javacore是一个文本文件,打开后可以看到每一个线程的执行栈,以 阅读全文
posted @ 2011-05-12 20:56
规格严格-功夫到家
阅读(3649)
评论(0)
推荐(0)
摘要:
jmap (memory map) prints shared object memory maps or heap memory details of a given process or core file or a remote debug server. If the given process is running on a 64-bit VM, you may need to specify the -J-d64 option.jhat (Java heap analysis tool) command parses a java heap dump file and launch 阅读全文
posted @ 2011-05-12 20:52
规格严格-功夫到家
阅读(296)
评论(0)
推荐(0)