当前位置:网站首页>Arthas quick start
Arthas quick start
2022-07-27 00:07:00 【Wen pingzhe】
Arthas ( Alsace ) What can I do for you ?
Arthas yes Alibaba Open source Java Diagnostic tools , Loved by developers . When you encounter the following similar problems and are at a loss , Arthas Can help you solve :
1. Where does this class come from jar Package loaded ? Why do you report all kinds of related Exception?
2. Why didn't I change the code to ? I didn't commit? The branch is wrong ?
3. I can't get online when I have a problem debug, Can't we just add logs and redistribute them ?
4. There is a problem with the data processing of a user online , But online also can't debug, It can't be reproduced offline !
5. Is there a global perspective to see the health of the system ?
6. Is there any way to monitor JVM The real-time running state of ?
7. How to quickly locate the hot spot of application , Generate flame chart ?
Arthas Support JDK 6+, Support Linux/Mac/Winodws, Use command line interaction mode , At the same time, it provides rich Tab Automatic completion function , Further facilitate problem location and diagnosis .
windows Under the quick installation
download arthas-boot.jar, And then use java -jar Way to start
1、 New folder md arthas 2、 download jar package cd arthas curl -0 https://alibaba.github.io/arthas/arthas-boot.jar --output arthas The second way to download : https://arthas.aliyun.com/doc/manual-install.html Download from the official website arthas The package , Extract locally and then install 3、 Check out the download directory dir You can see arthas-boot.jar My bag 4、 start-up java -jar arthas-boot.jar
You can open it on the browser page arthas, The default port is 3658 Address :http://127.0.0.1:3658/

Familiar with common commands
- dashboard Dashboard view java Virtual machine memory usage
- thread Command to get demo Project progress Main class
- adopt jad Decompile Main class
- watch
1、dashboard

Input q, perhaps ctrl C Back out
2、thread Command to get demo Project progress Main class
Get demo project java On going Main class
thread 1 Will print threads ID 1 The stack , Usually main Thread of function

Clear all commands of the current window cls View the currently running thread thread View the stack information of a thread thread Thread number
3、 adopt jad Decompile Main class
jad Package name . Class name jad demo.MathGame

4、watch monitor
adopt watch Order to see demo.MathGame primeFactors The return value of the function
$ watch demo.MathGame primeFactors returnObj

5、 sign out arthas
If you just exit the current connection , It can be used quit perhaps exit command .Attach To the target process arthas It will continue to run , The port will remain open , The next time you connect, you can connect directly .
If you want to quit completely arthas, It can be executed stop command , It is equivalent to ending the whole session
Summary

边栏推荐
- What scenarios are Tencent cloud lightweight application servers suitable for?
- Pytorch学习记录(二):张量
- Chapter 1 requirements analysis and SSM environment preparation
- DHCP, VLAN, NAT, large comprehensive experiment
- Pytorch learning record (II): tensor
- [H5 bottom scrolling paging loading]
- Analysis of encoding and decoding of encode() and decode(), common encoding and why encode and decode are needed
- 告别宽表,用 DQL 成就新一代 BI
- Modulo (remainder) operation in the range of real numbers: how to find the remainder of negative numbers
- Azure Synapse Analytics 性能优化指南(4)——使用结果集缓存优化性能
猜你喜欢

Apple TV HD with the first generation Siri remote is listed as obsolete

Pytorch data pipeline standardized code template

Dynamic memory management and related topics

关于可穿戴式NFT你应该知道的一切!

np.transpose & np.expand_dims

4-4 对象生命周期

分页插件--PageHelper

New features of ES6

文件上传到OSS文件服务器

Part II - C language improvement_ 13. Recursive function
随机推荐
08_ Event modifier
第1章 拦截器入门及使用技巧
会议OA之我的会议
Complete backpack and 01 Backpack
The NFT market pattern has not changed. Can okaleido set off a new round of waves?
第二部分—C语言提高篇_12. 动/精态库的封装和使用
带你熟悉云网络的“电话簿”:DNS
Typescript notes
push to origin/master was rejected 错误解决方法
2. Realize the map of navigation bar and battle page
Apple TV HD with the first generation Siri remote is listed as obsolete
Embedded system migration [8] - device tree and root file system migration
13_ conditional rendering
Dajiang Zhitu and CC have produced multiple copies of data. How to combine them into one and load them in the new earth map
Oracle remote connection configuration
第二部分—C语言提高篇_8. 文件操作
3 esp8266 nodemcu network server
[literature reading] an investigation on hardware aware vision transformer scaling
Part II - C language improvement_ 8. File operation
In simple terms, cchart's daily lesson - Lesson 59 of happy high school 4 comes to the same end by different ways, and the C code style of the colorful interface library