当前位置:网站首页>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 .
边栏推荐
- Three questions about scientific entrepreneurship: timing, pain points and important decisions
- 二传感器尺寸「建议收藏」
- 20个实用的 TypeScript 单行代码汇总
- Google Earth engine (GEE) - Global Human Settlements grid data 1975-1990-2000-2014 (p2016)
- The stack size specified is too small, specify at least 328k
- Flinkcdc should extract Oracle in real time. What should be configured for oracle?
- 波浪动画彩色五角星loader加载js特效
- Content Audit Technology
- How much money do novices prepare to play futures? Is agricultural products OK?
- String input function
猜你喜欢

Content Audit Technology

一款Flutter版的记事本

MySQL六十六问,两万字+五十图详解!复习必备
MySQL报错1040Too many connections的原因以及解决方案

ROS2 Foxy depthai_ ROS tutorial

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?
Reasons for MySQL reporting 1040too many connections and Solutions

MySQL 66 questions, 20000 words + 50 pictures in detail! Necessary for review

Terminal identification technology and management technology

Google Earth engine (GEE) - Global Human Settlements grid data 1975-1990-2000-2014 (p2016)
随机推荐
洞态在某互联⽹⾦融科技企业的最佳落地实践
机器学习—性能度量
Global and Chinese silicone defoamer production and marketing demand and investment forecast analysis report Ⓨ 2022 ~ 2027
受益互联网出海 汇量科技业绩重回高增长
流量管理技术
SSO and JWT good article sorting
3.4 《数据库系统概论》之数据查询—SELECT(单表查询、连接查询、嵌套查询、集合查询、多表查询)
Spark source code reading outline
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区别
Wave animation color five pointed star loader loading JS special effects
leetcode 322. Coin Change 零钱兑换(中等)
Report on the 14th five year plan and future development trend of China's integrated circuit packaging industry Ⓓ 2022 ~ 2028
Apache-atlas-2.2.0 independent compilation and deployment
ArrayList扩容机制以及线程安全性
Report on the "14th five year plan" and scale prospect prediction of China's laser processing equipment manufacturing industry Ⓢ 2022 ~ 2028
彩色五角星SVG动态网页背景js特效
La taille de la pile spécifiée est petite, spécifiée à la sortie 328k
IO的几种模型 阻塞,非阻塞,io多路复用,信号驱动和异步io
20个实用的 TypeScript 单行代码汇总