Table of Contents

Other features

Arthas Async Jobs

If you need to investigate an issue, but you are unsure about the exact time it occurs, you can run the monitoring command in the background and save the output to a log file.

Log the output

All execution records are fully saved in the log file for subsequent analysis.


Arthas configuration reference for using in Docker containers.

Web Console

Arthas supports living inside a browser. The communication between arthas and browser is via websocket.

Arthas Tunnel

Arthas Tunnel Server/Client enables remote management/connection to Java services across multiple servers.

How to use ognl

IDEA Plugin

Build arthas commands more efficiently in the IntelliJ IDEA compiler.

Arthas Properties

Arthas supports configuration options reference.

Start as a Java Agent

Arthas Spring Boot Starter

Starting with the application.


The Http API provides structured data and supports more complex interactive functions, making it easier to integrate Arthas into custom interfaces.

Batch Processing

It is convenient for running multiple commands in bulk with custom scripts. It can be used in conjunction with the --select parameter to specify the process name. and arthas-boot tips

  • Select the process to be attached via the select option.

Normally, needs to a pid, bacause the pid will change.

For example, with math-game.jar already started, use the jps command to see.

$ jps
58883 math-game.jar
58884 Jps

The select option allows you to specify a process name, which is very convenient.

$ ./ --select math-game
Arthas script version: 3.3.6
[INFO] JAVA_HOME: /tmp/java/8.0.222-zulu
Arthas home: /Users/admin/.arthas/lib/3.3.6/arthas
Calculating attach execution time...
Attaching to 59161 using version /Users/admin/.arthas/lib/3.3.6/arthas...

real	0m0.572s
user	0m0.281s
sys	0m0.039s
Attach success.
telnet connecting to arthas server... current timestamp is 1594280799
Connected to localhost.
Escape character is '^]'.
  ,---.  ,------. ,--------.,--.  ,--.  ,---.   ,---.
 /  O  \ |  .--. ''--.  .--'|  '--'  | /  O  \ '   .-'
|  .-.  ||  '--'.'   |  |   |  .--.  ||  .-.  |`.  `-.
|  | |  ||  |\  \    |  |   |  |  |  ||  | |  |.-'    |
`--' `--'`--' '--'   `--'   `--'  `--'`--' `--'`-----'

version   3.3.6
pid       58883

User data report

After the 3.1.4 version, arthas support user data report.

At startup, use the stat-url option, such as: ./ --stat-url ''

There is a sample data report in the tunnel server that users can implement on their own.

StatController.javaopen in new window