Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usages #15

Open
Hearen opened this issue Oct 10, 2018 · 2 comments
Open

Usages #15

Hearen opened this issue Oct 10, 2018 · 2 comments

Comments

@Hearen
Copy link
Owner

Hearen commented Oct 10, 2018

Manual boot

shell command

$ /opt/jdk1.8.0_144/bin/java -Xbootclasspath/a:/opt/jdk1.8.0_144/lib/tools.jar -jar ~/.arthas/lib/3.0.4/arthas/arthas-core.jar -target-ip 127.0.0.1 -telnet-port 3658 -http-port 8563 -pid 13328 -core ~/.arthas/lib/3.0.4/arthas/arthas-core.jar -agent ~/.arthas/lib/3.0.4/arthas/arthas-agent.jar

connect

$ telnet localhost 3658
@Hearen
Copy link
Owner Author

Hearen commented Oct 11, 2018

Using Map to check values

$ watch demo.Demo addTwoLists "params[0].{#this.length}" -x 2 -b 
Press Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 28 ms.
ts=2018-10-11 10:04:12;result=@ArrayList[
    @Integer[1],
    @Integer[1],
]

without mapping

$ watch demo.Demo addTwoLists "params[0]" -x 2 -b 
Press Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 28 ms.
ts=2018-10-11 10:03:57;result=@ArrayList[
    @String[a],
    @String[b],
]

@Hearen
Copy link
Owner Author

Hearen commented Oct 13, 2018

alibaba#198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant