当前位置:网站首页>Use of Arthas tunnel
Use of Arthas tunnel
2022-04-21 16:22:00 【xixingzhe2】
1、 Starting mode
At present, there are three types :
- jar Package start :arthas-boot.jar Start installation .
- browser :Web Console.
- browser :Arthas Tunnel.
2、jar Package start mode
download arthas-boot.jar, And then use java -jar Way to start
curl -O https://arthas.aliyun.com/arthas-boot.jar
java -jar arthas-boot.jar
3、Web Console
3.1 spring boot Access
Introduce dependencies
<dependency>
<groupId>com.taobao.arthas</groupId>
<artifactId>arthas-spring-boot-starter</artifactId>
<version>${arthas.version}</version>
</dependency>
Start project
java -jar arthas-demo-1.0.0.jar
You can directly access :http://127.0.0.1:8563/

4、Arthas Tunnel( It is recommended to use in production )
4.1 Download deployment arthas tunnel server
https://github.com/alibaba/arthas/releases
-
from Maven Warehouse downloading :Maven Central Repository Search
-
from Github Releases Page download : https://github.com/alibaba/arthas/releases
Arthas tunnel server It's a spring boot fat jar application , direct java -jar start-up :
java -jar arthas-tunnel-server-3.6.0-fatjar.jar
By default ,arthas tunnel server Of web The port is 8080,arthas agent The port of connection is 7777.

After starting , You can visit http://127.0.0.1:8080/ , Re pass agentId Connect to a registered arthas agent On .
adopt Spring Boot Of Endpoint, You can view the specific connection information : http://127.0.0.1:8080/actuator/arthas , The login user name is arthas, Password in arthas tunnel server You can find it in your log , such as :
32851 [main] INFO o.s.b.a.s.s.UserDetailsServiceAutoConfiguration
Using generated security password: f1dca050-3777-48f4-a577-6367e55a78a2
4.2 spring boot Access
Introduce dependencies
<dependency>
<groupId>com.taobao.arthas</groupId>
<artifactId>arthas-spring-boot-starter</artifactId>
<version>${arthas.version}</version>
</dependency>
The configuration file
arthas:
app-name: arthas-demo
# agent-id: arthas-demo
tunnel-server: ws://127.0.0.1:7777/ws
# If it is to prevent multiple startup on one machine arthas Port conflict . It can be configured as a random port ( Configure to 0), Or it can be configured as -1, And through tunnel server To use arthas.
telnet-port: -1
http-port: -1
Be careful :
- If you just configure app-name, Not configured agent-id, Will be automatically generated to arthas-demo Prefixed agent-id. Such as :
arthas-demo_CKPSCPC14OPLSAPM5P1P
-
If it is to prevent multiple startup on one machine arthas Port conflict . It can be configured as a random port , Or it can be configured as -1, And through tunnel server To use arthas.
Start project
java -jar arthas-demo-1.0.0.jar
tunnel server journal , It indicates that the registration is successful
2022-04-19 14:50:08.278 INFO 3789 --- [Server-boss-1-1] io.netty.handler.logging.LoggingHandler : [id: 0x341ce3ae, L:/0.0.0.0:7777] READ: [id: 0xedb2f060, L:/172.16.29.148:7777 - R:/47.111.96.249:48576]
2022-04-19 14:50:08.278 INFO 3789 --- [Server-boss-1-1] io.netty.handler.logging.LoggingHandler : [id: 0x341ce3ae, L:/0.0.0.0:7777] READ COMPLETE
2022-04-19 14:50:08.293 INFO 3789 --- [rver-worker-3-3] c.a.a.t.server.TunnelSocketFrameHandler : websocket handshake complete, uri: /ws?method=agentRegister&arthasVersion=3.6.0&appName=arthas-demo
4.3 tunnel server Check out the list of apps
Access address :http://localhost:8080/apps.html

Open details , You can see all the connected agent list :

Click on ip Address , You can enter the corresponding arthas Console

5、 Official website document address
版权声明
本文为[xixingzhe2]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211603416946.html
边栏推荐
- Announcement of the first ship sea data intelligent application innovation competition
- 小米Civi 1S 定价2299元起,主打美颜,让你上镜自由
- Qt5. 14.2 compiling MySQL
- (11) definition of macro language - (C.4)
- 云呐:大型医疗设备资产管理系统贵吗?医院资产管理的主要内容
- Root unlock problem
- 免费下载文档教程
- 下载Chrome插件安装到浏览器
- Assembly language programming: design and debugging of input character type statistics in modular programming
- Test case of kingbasees v8r3 cluster modifying data path of Jincang database
猜你喜欢

想靠“泄露数据”来发家?真刑啊

Yunna: is the asset management system of large medical equipment expensive? Main contents of hospital asset management

Outsourcing student management system architecture scheme

Announcement of the first ship sea data intelligent application innovation competition

2022数二真题

Must brush the simulated question bank and answers of the latest eight members of Chongqing in 2022

几种单USB转多串口的方案

Yunna: computer room asset management system web version, application of equipment asset information management

es6如何判断数组是否重复

云呐:机房资产管理系统web版,设备资产信息管理的应用
随机推荐
SharkTeam发布2022年Q1智能合约安全态势感知季报
Historical evolution, application and security requirements of the Internet of things
What is the anti correlation principle? How to choose the anti Association fingerprint browser? What are the criteria?
Campus talking notes (5)
mysql查询某一个字段是否包含中文汉字
2022年重庆最新建筑施工焊工(建筑特种作业)模拟题库及答案
What role can NPU in mobile phone play
小米Civi 1S 定价2299元起,主打美颜,让你上镜自由
OJ每日一练——发放奖金
Sharkteam releases quarterly report on security situational awareness of Q1 smart contract in 2022
HMC foundation big Ma robot synchronization token HMC (seaman) will launch pancakeswap
解决 idea web项目没有小蓝点的问题
OJ daily practice - number of characters
.NET Swagger配置
手机里的NPU可以起到什么作用
Realize Gaode coordinate to GPS coordinate
求字符串最长子串
Root unlock problem
Qt5. 14.2 compiling MySQL
排序课后练习题