调试JAVA

-XX:+HeapDumpOnOutOfMemoryError

jhat -J-Xmx384m java_pid20033.hprof
Reading from java_pid20033.hprof...
Dump file created Sat Sep 05 16:11:04 CST 2009
Snapshot read, resolving...
Resolving 2773668 objects...
Chasing references, expect 554 dots..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Eliminating duplicate references..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Snapshot resolved.
Started HTTP server on port 7000
Server is ready.


select g from oom.OOM$BMM g where g.a==666;

你可能感兴趣的:(java,J#)