当前位置:网站首页>Arthas use
Arthas use
2022-07-01 13:28:00 【A yebadi who wants to type code_】
arthas Installation
MAC And Linux Use
curl -O https://arthas.aliyun.com/arthas-boot.jar
Windows Download it directly
https://arthas.aliyun.com/arthas-boot.jar
arthas start-up
java -Dfile.encoding=UTF-8 -jar arthas-boot.jar
Then choose the program you want
Enter the number and press enter
If you want to quit using stop, Don't use it. exit;
Use exit sign out , If you want to enter other projects, there will be port occupancy , Use stop Will close arthas
Decompiled code
You can confirm whether the new code is successfully deployed
// Decompile command
Format jad --source-only Package name to class name Space Method name 【--lineNumber true/false】 optional This is of no great use
give an example
jad --source-only com.community.service.CacheService getCache1 --lineNumber false
// Look directly at the whole class Do not add line number restrictions
jad --source-only com.hxb.CacheService
watch( The most commonly used )
You can check whether the request passes through this method
You can check the length of time
You can check the input parameters , Return value and exception
watch com.hxb.ext.HostHolderImpl getUser {
params,returnObj} -n 2 -x 1
Minutiae ::
-n Indicates the number of views , Not setting may pop up a lot
-x Represents the depth of parsing ,
give an example : -x 1 The return value of
@User[com.hxb.model.User@35eaa946],
-x 2 The return value of will be displayed .
@User[
id=@Long[54],
type=@Integer[1],
name=@String[ Administrators ],
phone=null,
.....
],
If an exception occurs, the return value is null,
Therefore, it is generally necessary to add throwExp
Can show exceptions
Final realization
watch com..DepartmentResource newRole {
params,returnObj,throwExp} -n 3 -x 2
I hope you can point out some mistakes !!!
There are other common commands or tools that I hope you can recommend in the comment area , thank .
边栏推荐
- 图灵奖得主Judea Pearl:最近值得一读的19篇因果推断论文
- IO的几种模型 阻塞,非阻塞,io多路复用,信号驱动和异步io
- LeetCode重建二叉树详解[通俗易懂]
- minimum spanning tree
- 面试题目总结(1) https中间人攻击,ConcurrentHashMap的原理 ,serialVersionUID常量,redis单线程,
- Three questions about scientific entrepreneurship: timing, pain points and important decisions
- 逆向调试入门-PE结构-输入表输出表05/07
- Flutter SQLite使用
- Detailed explanation of parallel replication examples in MySQL replication
- 香港科技大学李泽湘教授:我错了,为什么工程意识比上最好的大学都重要?
猜你喜欢
Operator-1 first acquaintance with operator
Content Audit Technology
1553B环境搭建
游戏公会在去中心化游戏中的未来
香港科技大学李泽湘教授:我错了,为什么工程意识比上最好的大学都重要?
Nexus builds NPM dependent private database
Flow management technology
Application of 5g industrial gateway in scientific and technological overload control; off-site joint law enforcement for over limit, overweight and overspeed
spark源码(五)DAGScheduler TaskScheduler如何配合提交任务,application、job、stage、taskset、task对应关系是什么?
Build a vc2010 development environment and create a tutorial of "realizing Tetris game in C language"
随机推荐
Computer network interview knowledge points
9. Use of better scroll and ref
3.4 《数据库系统概论》之数据查询—SELECT(单表查询、连接查询、嵌套查询、集合查询、多表查询)
Different test techniques
Professor Li Zexiang, Hong Kong University of science and technology: I'm wrong. Why is engineering consciousness more important than the best university?
Analysis report on the development prospect and investment strategy of the global and Chinese laser chip industry Ⓑ 2022 ~ 2027
MySQL gap lock
1. Sum of two numbers: given an integer array num and an integer target value, please find the two integers whose sum is the target value target in the array and return their array subscripts
MySQL报错1040Too many connections的原因以及解决方案
Asp.netcore利用dynamic简化数据库访问
leetcode 322. Coin Change 零钱兑换(中等)
MySQL 66 questions, 20000 words + 50 pictures in detail! Necessary for review
用命令行 给 apk 签名
Operator-1 first acquaintance with operator
科学创业三问:关于时机、痛点与重要决策
word2vec训练中文词向量
Development trend and market demand analysis report of China's high purity copper industry Ⓕ 2022 ~ 2028
Feign & Eureka & zuul & hystrix process
Nexus builds NPM dependent private database
Function test process in software testing