Start Arthas
java -jar arthas-boot.jar
Dashboard commands:
dashboard
Tip: For the real-time data panel of the current system, press ctrl+c to exit.
Trace command
trace com.qushen.controller.TestController test1
trace is the keyword, com.qushen.controller.TestController is the package path, and test1 is the method name.
Multiple tabs are required to access Arthas:
telnet localhost 3658
Other parameters:
--skipJDKMethod skip jdk method trace, default value true.
By default, trace will not include function calls in jdk. If you want to trace functions in jdk, you need to explicitly set --skipJDKMethod false.
-v option, the specific value and execution result of Condition express will be printed for easy confirmation.
trace -v --skipJDKMethod false com.qushen.service.impl.TestServiceImpl getRecordByCode --listenerId 10