jvm.hprof.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
  2. Redistribution and use in source and binary forms, with or without
  3. modification, are permitted provided that the following conditions
  4. are met:
  5. - Redistributions of source code must retain the above copyright
  6. notice, this list of conditions and the following disclaimer.
  7. - Redistributions in binary form must reproduce the above copyright
  8. notice, this list of conditions and the following disclaimer in the
  9. documentation and/or other materials provided with the distribution.
  10. - Neither the name of Oracle nor the names of its
  11. contributors may be used to endorse or promote products derived
  12. from this software without specific prior written permission.
  13. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  14. IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  15. THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  16. PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  17. CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  18. EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  19. PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  20. PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  21. LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  22. NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  23. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  24. Header for -agentlib:hprof (or -Xrunhprof) ASCII Output (JDK 5.0 JVMTI based)
  25. WARNING! This file format is under development, and is subject to
  26. change without notice.
  27. This file contains the following types of records:
  28. THREAD START
  29. THREAD END mark the lifetime of Java threads
  30. TRACE represents a Java stack trace. Each trace consists
  31. of a series of stack frames. Other records refer to
  32. TRACEs to identify (1) where object allocations have
  33. taken place, (2) the frames in which GC roots were
  34. found, and (3) frequently executed methods.
  35. HEAP DUMP is a complete snapshot of all live objects in the Java
  36. heap. Following distinctions are made:
  37. ROOT root set as determined by GC
  38. CLS classes
  39. OBJ instances
  40. ARR arrays
  41. SITES is a sorted list of allocation sites. This identifies
  42. the most heavily allocated object types, and the TRACE
  43. at which those allocations occurred.
  44. CPU SAMPLES is a statistical profile of program execution. The VM
  45. periodically samples all running threads, and assigns
  46. a quantum to active TRACEs in those threads. Entries
  47. in this record are TRACEs ranked by the percentage of
  48. total quanta they consumed; top-ranked TRACEs are
  49. typically hot spots in the program.
  50. CPU TIME is a profile of program execution obtained by measuring
  51. the time spent in individual methods (excluding the time
  52. spent in callees), as well as by counting the number of
  53. times each method is called. Entries in this record are
  54. TRACEs ranked by the percentage of total CPU time. The
  55. "count" field indicates the number of times each TRACE
  56. is invoked.
  57. MONITOR TIME is a profile of monitor contention obtained by measuring
  58. the time spent by a thread waiting to enter a monitor.
  59. Entries in this record are TRACEs ranked by the percentage
  60. of total monitor contention time and a brief description
  61. of the monitor. The "count" field indicates the number of
  62. times the monitor was contended at that TRACE.
  63. MONITOR DUMP is a complete snapshot of all the monitors and threads in
  64. the System.
  65. HEAP DUMP, SITES, CPU SAMPLES|TIME and MONITOR DUMP|TIME records are generated
  66. at program exit. They can also be obtained during program execution by typing
  67. Ctrl-\ (on Solaris) or by typing Ctrl-Break (on Win32).