Documentation Contents

jhat - Java ????????????????????????

??????

jhat [ options ] <heap-dump-file>

???????????????

options
?????????????????????????????????????????????????????????????????????????????????????????????

heap-dump-file
??????????????????????????? Java ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????foo.hprof#3??????????????????????????????????????????#<number>??????????????????????????????????????????????????????????????????????????????????????????

??????

jhat ??????????????????java ?????????????????????????????????????????????Web ????????????????????????????????? jhat ??????????????????????????? Web ???????????????????????????????????????????????????????????????????????? jhat ????????????????????????????????????Foo??????????????????????????????????????????????????????????????????????????????????????????????????????????????????OQL (Object Query Language) ???????????????????????????OQL ?????????????????????jhat ??????????????????????????? OQL ???????????????????????????????????????????????????????????????????????????????????????????????????OQL ??????????????? http://localhost:7000/oqlhelp/ ????????????????????????

Java ????????????????????????????????????????????????????????????????????????????????????

  • jmap ??? -dump ???????????????????????????????????????????????????????????????????????????
  • jconsole ?????????????????????????????? HotSpotDiagnosticMXBean ?????????????????????????????????????????????????????????
  • -XX:+HeapDumpOnOutOfMemoryError VM ????????????????????????????????????OutOfMemoryError ?????????????????????????????????????????????????????????
  • hprof ??????????????????

???: ????????????????????????????????????????????????????????? JDK ???????????????????????????????????????????????????????????????????????????

???????????????

-stack false/true
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? false ????????????????????????????????????????????????????????? true ?????????
-refs false/true
????????????????????????????????????????????????????????????????????????????????? true ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????? (????????????????????????????????????????????????????????????????????????????????? ????????????????????????????????????????????????) ????????????????????????
-port port-number
jhat ??? HTTP ??????????????????????????????????????????????????????????????? 7000 ?????????
-exclude exclude-file
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? java.lang.String.value ????????????????????????????????????????????????????????????o??????????????????????????????????????????????????????????????????????????????java.lang.String.value ??????????????????????????????????????????????????????????????????????????????
-baseline baseline-dump-file
??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ID ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? 2 ???????????????????????????????????????????????????????????????
-debug int
????????????????????????????????????????????????????????????0 ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
-version 
???????????????????????????????????????????????????????????????
-h 
?????????????????????????????????????????????????????????
-help 
?????????????????????????????????????????????????????????
-J<flag> 
jhat ???????????????????????? Java ?????????????????? <flag> ?????????????????????????????????512M ????????????????????????????????????????????????????????????-J-Xmx512m ???????????????

????????????


Copyright © 1995-2010 Sun Microsystems, Inc. All Rights Reserved.

Please send comments using this Feedback page.
Sun Microsystems, Inc.
Java Technology