comparison agent/doc/clhsdb.html @ 7066:7d815d842ee0

Merge.
author Christian Haeubl <haeubl@ssw.jku.at>
date Fri, 23 Nov 2012 11:50:27 +0100
parents bd7a7ce2e264
children 7b23cb975cf2
comparison
equal deleted inserted replaced
7065:cfacf5d5bade 7066:7d815d842ee0
35 <pre> 35 <pre>
36 <code> 36 <code>
37 Available commands: 37 Available commands:
38 assert true | false <font color="red">turn on/off asserts in SA code</font> 38 assert true | false <font color="red">turn on/off asserts in SA code</font>
39 attach pid | exec core <font color="red">attach SA to a process or core</font> 39 attach pid | exec core <font color="red">attach SA to a process or core</font>
40 buildreplayjars [all | boot | app] <font color="red">build jars for replay, boot.jar for bootclasses, app.jar for application classes</font>
40 class name <font color="red">find a Java class from debuggee and print oop</font> 41 class name <font color="red">find a Java class from debuggee and print oop</font>
41 classes <font color="red">print all loaded Java classes with klassOop</font> 42 classes <font color="red">print all loaded Java classes with Klass*</font>
42 detach <font color="red">detach SA from current target</font> 43 detach <font color="red">detach SA from current target</font>
43 dis address [ length ] <font color="red">disassemble (sparc/x86) specified number of instructions from given address</font> 44 dis address [ length ] <font color="red">disassemble (sparc/x86) specified number of instructions from given address</font>
44 dumpclass { address | name } [ directory ] <font color="red">dump .class file for given klassOop or class name</font> 45 dissemble address <font color="red">disassemble nmethod</font>
46 dumpcfg -a | id <font color="red">Dump the PhaseCFG for every compiler thread that has one live</font>
47 dumpclass { address | name } [ directory ] <font color="red">dump .class file for given Klass* or class name</font>
48 dumpcodecache <font color="red">dump codecache contents</font>
45 dumpheap [ file ] <font color="red">dump heap in hprof binary format</font> 49 dumpheap [ file ] <font color="red">dump heap in hprof binary format</font>
50 dumpideal -a | id <font color="red">dump ideal graph like debug flag -XX:+PrintIdeal</font>
51 dumpilt -a | id <font color="red">dump inline tree for C2 compilation</font>
52 dumpreplaydata <address> | -a | <thread_id> [>replay.txt] <font color="red">dump replay data into a file</font>
46 echo [ true | false ] <font color="red">turn on/off command echo mode</font> 53 echo [ true | false ] <font color="red">turn on/off command echo mode</font>
47 examine [ address/count ] | [ address,address] <font color="red">show contents of memory from given address</font> 54 examine [ address/count ] | [ address,address] <font color="red">show contents of memory from given address</font>
48 field [ type [ name fieldtype isStatic offset address ] ] <font color="red">print info about a field of HotSpot type</font> 55 field [ type [ name fieldtype isStatic offset address ] ] <font color="red">print info about a field of HotSpot type</font>
49 findpc address <font color="red">print info. about pointer location</font> 56 findpc address <font color="red">print info. about pointer location</font>
50 flags [ flag ] <font color="red">show all -XX flag name value pairs. or just show given flag</font> 57 flags [ flag ] <font color="red">show all -XX flag name value pairs. or just show given flag</font>
51 help [ command ] <font color="red">print help message for all commands or just given command</font> 58 help [ command ] <font color="red">print help message for all commands or just given command</font>
52 history <font color="red">show command history. usual !command-number syntax works.</font> 59 history <font color="red">show command history. usual !command-number syntax works.</font>
53 inspect expression <font color="red">inspect a given oop</font> 60 inspect expression <font color="red">inspect a given oop</font>
54 jdis address <font color="red">show bytecode disassembly of a given methodOop</font> 61 intConstant [ name [ value ] ] <font color="red">print out hotspot integer constant(s)</font>
62 jdis address <font color="red">show bytecode disassembly of a given Method*</font>
55 jhisto <font color="red">show Java heap histogram</font> 63 jhisto <font color="red">show Java heap histogram</font>
56 jseval script <font color="red">evaluate a given string as JavaScript code</font> 64 jseval script <font color="red">evaluate a given string as JavaScript code</font>
57 jsload file <font color="red">load and evaluate a JavaScript file</font> 65 jsload file <font color="red">load and evaluate a JavaScript file</font>
58 jstack [-v] <font color="red">show Java stack trace of all Java threads. -v is verbose mode</font> 66 jstack [-v] <font color="red">show Java stack trace of all Java threads. -v is verbose mode</font>
59 livenmethods <font color="red">show all live nmethods</font> 67 livenmethods <font color="red">show all live nmethods</font>
68 longConstant [ name [ value ] ] <font color="red">print out hotspot long constant(s)s</font>
60 mem address [ length ] <font color="red">show contents of memory -- also shows closest ELF/COFF symbol if found</font> 69 mem address [ length ] <font color="red">show contents of memory -- also shows closest ELF/COFF symbol if found</font>
61 pmap <font color="red">show Solaris pmap-like output</font> 70 pmap <font color="red">show Solaris pmap-like output</font>
62 print expression <font color="red">print given klassOop, methodOop or arbitrary address</font> 71 print expression <font color="red">print given Klass*, Method* or arbitrary address</font>
63 printas type expression <font color="red">print given address as given HotSpot type. eg. print JavaThread &lt;address&gt;</font> 72 printas type expression <font color="red">print given address as given HotSpot type. eg. print JavaThread &lt;address&gt;</font>
73 printmdo -a | expression <font color="red">print method data oop</font>
64 printstatics [ type ] <font color="red">print static fields of given HotSpot type (or all types if none specified)</font> 74 printstatics [ type ] <font color="red">print static fields of given HotSpot type (or all types if none specified)</font>
65 pstack [-v] <font color="red">show mixed mode stack trace for all Java, non-Java threads. -v is verbose mode</font> 75 pstack [-v] <font color="red">show mixed mode stack trace for all Java, non-Java threads. -v is verbose mode</font>
66 quit <font color="red">quit CLHSDB tool</font> 76 quit <font color="red">quit CLHSDB tool</font>
67 reattach <font color="red">detach and re-attach SA to current target</font> 77 reattach <font color="red">detach and re-attach SA to current target</font>
78 revptrs <font color="red">find liveness of oops</font>
68 scanoops start end [ type ] <font color="red">scan a Oop from given start to end address</font> 79 scanoops start end [ type ] <font color="red">scan a Oop from given start to end address</font>
69 search [ heap | codecache | threads ] value <font color="red">search a value in heap or codecache or threads</font> 80 search [ heap | codecache | threads ] value <font color="red">search a value in heap or codecache or threads</font>
70 source filename <font color="red">load and execute CLHSDB commands from given file</font> 81 source filename <font color="red">load and execute CLHSDB commands from given file</font>
71 symbol name <font color="red">show address of a given ELF/COFF symbol</font> 82 symbol name <font color="red">show address of a given ELF/COFF symbol</font>
72 sysprops <font color="red">show all Java System properties</font> 83 sysprops <font color="red">show all Java System properties</font>
84 thread id <font color="red">show thread of id</font>
73 threads <font color="red">show all Java threads</font> 85 threads <font color="red">show all Java threads</font>
74 tokenize ... 86 tokenize ...
75 type [ type [ name super isOop isInteger isUnsigned size ] ] <font color="red">show info. on HotSpot type</font> 87 type [ type [ name super isOop isInteger isUnsigned size ] ] <font color="red">show info. on HotSpot type</font>
76 universe <font color="red">print gc universe</font> 88 universe <font color="red">print gc universe</font>
89 vmstructsdump <font color="red">dump hotspot type library in text</font>
77 verbose true | false <font color="red">turn on/off verbose mode</font> 90 verbose true | false <font color="red">turn on/off verbose mode</font>
78 versioncheck [ true | false ] <font color="red">turn on/off debuggee VM version check</font> 91 versioncheck [ true | false ] <font color="red">turn on/off debuggee VM version check</font>
79 whatis address <font color="red">print info about any arbitrary address</font> 92 whatis address <font color="red">print info about any arbitrary address</font>
80 where { -a | id } <font color="red">print Java stack trace of given Java thread or all Java threads (-a)</font> 93 where { -a | id } <font color="red">print Java stack trace of given Java thread or all Java threads (-a)</font>
81 </code> 94 </code>
112 <code> 125 <code>
113 hsdb&gt; jsload test.js 126 hsdb&gt; jsload test.js
114 </code> 127 </code>
115 </pre> 128 </pre>
116 129
130 <h3>C2 Compilation Replay</h3>
131 <p>
132 When a java process crashes in compiled method, usually a core file is saved.
133 The C2 replay function can reproduce the compiling process in the core.
134 <a href="c2replay.html">c2replay.html</a>
135
117 </body> 136 </body>
118 </html> 137 </html>