Skip to content

Commit 8cb5cae

Browse files
committed
Update COMMANDS.md
Fix stcap command example
1 parent e89f202 commit 8cb5cae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sjk-core/COMMANDS.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,11 @@ Example
263263

264264
`stcap` command
265265
----
266-
stcap commands dumps threads from target process with configured period (or non-stop) to a file
266+
stcap commands dumps threads from target process with configured period (or non-stop)
267267

268-
> java -jar sjk.jar mx -p 6344 -mg -b java.lang:type=Memory -f HeapMemoryUsage
268+
Command example (command below would sample target process for 30 seconds)
269+
270+
> java -jar sjk.jar stcap -p PID -o dump.std
269271

270272
[Stack Capture] Dumps stack traces to file for further processing
271273
Usage: stcap [options]

0 commit comments

Comments
 (0)