当前位置:网站首页>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 .
边栏推荐
- MySQL gap lock
- 盲盒NFT数字藏品平台系统开发(搭建源码)
- Svg diamond style code
- [Niu Ke's questions -sql big factory interview real questions] no2 User growth scenario (a certain degree of information flow)
- Reasons for MySQL reporting 1040too many connections and Solutions
- 硬件开发笔记(九): 硬件开发基本流程,制作一个USB转RS232的模块(八):创建asm1117-3.3V封装库并关联原理图元器件
- Global and Chinese n-butanol acetic acid market development trend and prospect forecast report Ⓧ 2022 ~ 2028
- ZABBIX 6.0 source code installation and ha configuration
- 商汤科技崩盘 :IPO时已写好的剧本
- 啟動solr報錯The stack size specified is too small,Specify at least 328k
猜你喜欢
JS discolored Lego building blocks
ROS2 Foxy depthai_ ROS tutorial
ZABBIX 6.0 source code installation and ha configuration
mysql统计账单信息(下):数据导入及查询
Build a vc2010 development environment and create a tutorial of "realizing Tetris game in C language"
[development of large e-commerce projects] performance pressure test - basic concept of pressure test & jmeter-38
【机器学习】VAE变分自编码器学习笔记
MySQL statistical bill information (Part 2): data import and query
【牛客刷题-SQL大厂面试真题】NO2.用户增长场景(某度信息流)
Spark source code (V) how does dagscheduler taskscheduler cooperate with submitting tasks, and what is the corresponding relationship between application, job, stage, taskset, and task?
随机推荐
Introduction to topological sorting
MySQL statistical bill information (Part 2): data import and query
香港科技大学李泽湘教授:我错了,为什么工程意识比上最好的大学都重要?
Qtdeisgner, pyuic detailed use tutorial interface and function logic separation (nanny teaching)
Wave animation color five pointed star loader loading JS special effects
20个实用的 TypeScript 单行代码汇总
JS变色的乐高积木
codeforces -- 4B. Before an Exam
Camp division of common PLC programming software
Global and Chinese styrene acrylic lotion polymer development trend and prospect scale prediction report Ⓒ 2022 ~ 2028
Fiori 应用通过 Adaptation Project 的增强方式分享
【牛客刷题-SQL大厂面试真题】NO2.用户增长场景(某度信息流)
In the next stage of digital transformation, digital twin manufacturer Youyi technology announced that it had completed a financing of more than 300 million yuan
During Oracle CDC data transmission, the CLOB type field will lose its value during update. There is a value before update, but
Shangtang technology crash: a script written at the time of IPO
MySQL报错1040Too many connections的原因以及解决方案
Declare an abstract class vehicle, which contains the private variable numofwheel and the public functions vehicle (int), horn (), setnumofwheel (int) and getnumofwheel (). Subclass mot
单工,半双工,全双工区别以及TDD和FDD区别
arthas使用
Redis exploration: cache breakdown, cache avalanche, cache penetration