Alibaba's Java diagnostic tool for troubleshooting production JVMs without restarts
open sourceApache-2.0free
Arthas is a Java diagnostic tool open sourced by Alibaba that troubleshoots production Java applications on the fly, without changing code or restarting the JVM, and never suspends running threads. It shows where classes are loaded from and decompiles them, reports classloader statistics and leaks, watches method parameters, return values and exceptions, traces slow sub-calls and caller stacks, monitors method QPS, response time and success rate, shows threads, CPU and GC, finds heap instances of a class, and produces flame graphs. It works interactively from a command line with auto-complete, locally or remotely over telnet and WebSocket, on JDK 8 and later (4.x supports up to JDK 25).
Problems it solves
- debug a Java application in production without restarting it
- find which method call is slow in a running JVM
- figure out which jar a class was loaded from
Features
- diagnose a running JVM without restart
- decompile classes and check classloading
- watch and trace method calls
- monitor QPS, response time, threads and GC
- flame graph profiler
- remote diagnostics over telnet and WebSocket
Alternatives
The same job
These do what Arthas does.
- Lightrun Live debugging and runtime context for production code, plus an AI SRE agent
- Debugger for Java Microsoft's Java debugger for VS Code
- Pernosco Omniscient debugger for rr recordings of Linux programs