Java Debugging

1,

https://visualvm.java.net/oqlhelp.html#top

http://docs.oracle.com/javase/7/docs/technotes/samples/hprof.html#HAT

http://docs.oracle.com/javase/7/docs/technotes/guides/vm/dtrace.html

http://docs.oracle.com/javase/7/docs/technotes/tools/share/jhat.html

http://docs.oracle.com/javase/7/docs/technotes/tools/share/jmap.html

 

2, 抓dump

1,找到Javaw.exe的PID

2,CD C:\Program Files\Java\jdk1.7.0_71\bin

3,替代下面的pid, 然后在CMD运行,会在c:\temp目录下生成dump 文件。

jmap.exe -dump:format=b,file=c:\temp\HeapDump.hprof pid

 

3,

http://www.blogjava.net/rosen/archive/2010/06/13/323522.html

posted on 2016-09-21 14:22  暖风的风  阅读(162)  评论(0编辑  收藏  举报

导航