import{_ as n,o as c,c as o,a as e,b as i,w as d,d as a,e as s,r}from"./app.4d248835.js";const l={},h=a(`
With the help of Batch Processing, you can run multiple commands in batch and get the final result at the end. The process name can be specified using the \u201C\u2013select\u201D parameter.
Create a test.as
script suffixed with as
. Here as
is suggested for the suffix of the filename, but in fact any suffix is acceptable.
\u279C arthas git:(develop) cat /var/tmp/test.as
help
dashboard -n 1
session
thread
sc -d org.apache.commons.lang.StringUtils
Note:
`,7),p=a("-n
) must be explicitly specified for dashboard
, otherwise batch script cannot terminate.watch
/tt
/trace
/monitor
/stack
should include -n
option to ensure the script can be able to quit.Use -f
to specify the script file. By default the result will be output to the standard output, but you can redirect the output to the file like this:
./as3.sh -f /var/tmp/test.as 56328 > test.out
Use -c
also can specify the commands, like this:
./as3.sh -c 'sysprop; thread' 56328 > test.out
cat test.out