Skip to content

Commit a81e3ae

Browse files
committed
update integration-test/telnet-stop-leak/commands.txt
1 parent 41f043e commit a81e3ae

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

integration-test/telnet-stop-leak/commands.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,16 @@ sc -d demo.MathGame
88
sm demo.MathGame
99
jad demo.MathGame
1010
watch demo.MathGame primeFactors "{params,returnObj,throwExp}" -n 1 -x 1
11+
# trace 命令:追踪方法调用路径及耗时
12+
trace demo.MathGame run -n 1
13+
trace demo.MathGame primeFactors '#cost>0' -n 1
14+
# ognl 命令:执行 OGNL 表达式
15+
ognl '@java.lang.System@getProperty("java.version")'
16+
ognl '@java.lang.Runtime@getRuntime().availableProcessors()'
17+
ognl -x 2 '@java.lang.System@getProperties()'
18+
# vmtool 命令:JVM 工具
19+
vmtool --action getInstances --className demo.MathGame --limit 5
20+
vmtool --action getInstances --className demo.MathGame --express 'instances.length'
21+
vmtool --action forceGc
1122
reset
1223

0 commit comments

Comments
 (0)