当前位置:网站首页>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 .
边栏推荐
- 关于佛萨奇2.0“Meta Force原力元宇宙系统开发逻辑方案(详情)
- Beidou communication module Beidou GPS module Beidou communication terminal DTU
- [development of large e-commerce projects] performance pressure test - basic concept of pressure test & jmeter-38
- Introduction to reverse debugging PE structure input table output table 05/07
- 受益互联网出海 汇量科技业绩重回高增长
- ArrayList扩容机制以及线程安全性
- What is the future development direction of people with ordinary education, appearance and family background? The career planning after 00 has been made clear
- Router. use() requires a middleware function but got a Object
- Yarn重启applications记录恢复
- Global and Chinese n-butanol acetic acid market development trend and prospect forecast report Ⓧ 2022 ~ 2028
猜你喜欢

VM virtual machine configuration dynamic IP and static IP access

逆向调试入门-PE结构-输入表输出表05/07

北斗通信模块 北斗gps模块 北斗通信终端DTU

硬件开发笔记(九): 硬件开发基本流程,制作一个USB转RS232的模块(八):创建asm1117-3.3V封装库并关联原理图元器件

spark源码(五)DAGScheduler TaskScheduler如何配合提交任务,application、job、stage、taskset、task对应关系是什么?

啟動solr報錯The stack size specified is too small,Specify at least 328k

Flow management technology

Colorful five pointed star SVG dynamic web page background JS special effect

Feign & Eureka & zuul & hystrix process

French Data Protection Agency: using Google Analytics or violating gdpr
随机推荐
leetcode 322. Coin change (medium)
Zabbix 6.0 源码安装以及 HA 配置
Report on the current situation and development trend of bidirectional polypropylene composite film industry in the world and China Ⓟ 2022 ~ 2028
French Data Protection Agency: using Google Analytics or violating gdpr
不同的测试技术区分
香港科技大学李泽湘教授:我错了,为什么工程意识比上最好的大学都重要?
股票开户要认识谁?实际上网上开户安全么?
微机原理与接口技术知识点整理复习–纯手打
流量管理技术
Function test process in software testing
Build a vc2010 development environment and create a tutorial of "realizing Tetris game in C language"
Flow management technology
基于mysql乐观锁实现秒杀的示例代码
arthas使用
Sharing with the best paper winner of CV Summit: how is a good paper refined?
Camp division of common PLC programming software
单工,半双工,全双工区别以及TDD和FDD区别
Fiori applications are shared through the enhancement of adaptation project
Jenkins+webhooks-多分支参数化构建-
游戏公会在去中心化游戏中的未来