← 返回命令列表

Linux command

arthas 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Attach

java -jar arthas-boot.jar [PID]

Example

java -jar arthas-boot.jar

Example

java -jar arthas-boot.jar --telnet-port [3658] --http-port [8563] [PID]

说明

Arthas is an Alibaba open-source Java diagnostic tool. It enables real-time monitoring and troubleshooting of Java applications without stopping them or modifying code. Features include method tracing, class decompilation, monitoring metrics, and OGNL expression evaluation on live JVMs.

参数

pid
Java process ID to attach
--telnet-port _port_
Telnet console port
--http-port _port_
HTTP API port
--target-ip _ip_
IP to bind
--tunnel-server _url_
Tunnel server URL

FAQ

What is the arthas command used for?

Arthas is an Alibaba open-source Java diagnostic tool. It enables real-time monitoring and troubleshooting of Java applications without stopping them or modifying code. Features include method tracing, class decompilation, monitoring metrics, and OGNL expression evaluation on live JVMs.

How do I run a basic arthas example?

Run `java -jar arthas-boot.jar [PID]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does pid do in arthas?

Java process ID to attach