alibaba /arthas
Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas
★ 37,617⑂ 7,642👁 1,096⑃ 1,014● 2,170▤ 79
+2
Daily
+4
Weekly
+34
Monthly
37,617
stars
7,642
forks
1,096
watchers
1,014
prs
2,170
issues
79
releases
README
Arthas !arthas !license Arthas is a Java Diagnostic tool open sourced by Alibaba. Arthas allows developers to troubleshoot production issues for Java applications without modifying code or restarting servers. 中文说明/Chinese Documentation Background Often times, the production system network is inaccessible from the local development environment. If issues are encountered in production systems, it is impossible to use IDEs to debug the application remotely. More importantly, debugging in production environment is unacceptable, as it will suspend all the threads, resulting in the suspension of business services. Developers could always try to reproduce the same issue on the test/staging environment. However, this is tricky as some issues cannot be reproduced easily on a different environment, or even disappear once restarted. And if you're thinking of adding some logs to your code to help troubleshoot the issue, you will have to go through the following lifecycle; test, staging, and then to production. Time is money! This approach is inefficient! Besides, the issue may not be reproducible once the JVM is restarted, as described above. Arthas was built to solve these issues. A developer can troubleshoot your production issues on-the-fly. No JVM restart, no additional code changes. Arthas works as an observer, which will never suspend your existing threads. Key features Check whether a class is loaded, or where the class is being loaded. (Useful for troubleshooting jar file conflicts) Decompile a class to ensure the code is running as expected. View classloader statistics, e.g. the number of classloaders, the number of classes loaded per classloader, the classloader hierarchy, possible classloader leaks, etc. View the method invocation details, e.g. method parameter, return object, thrown exception, and etc. Check the stack trace of specified method invocation. This is useful when a developers wants to know the caller of the said method. Trace the method invocation to find slow sub-invocations. Monitor method invocation statistics, e.g. qps, rt, success rate and etc. Monitor system metrics, thread states and cpu usage, gc statistics, and etc. Supports command line interactive mode, with auto-complete feature enabled. Supports telnet and websocket, which enables both local and remote diagnostics with command line and browsers. Supports profiler/Flame Graph Support get objects in the heap that are instances of the specified class. Supports JDK 8+ in version 4.x, including JDK 17, JDK 21, and JDK 25. Supports Linux/Mac/Windows. Quick start Use arthas-boot(Recommended) Downloadarthas-boot.jar,Start with java command: bash curl -O https://arthas.aliyun.com/arthas-boot.jar java -jar arthas-boot.jar Print usage: bash java -jar arthas-boot.jar -h Use as.sh You can install Arthas with one single line command on Linux, Unix, and Mac. Copy the following command and paste it into the command line, then press Enter
Top issues
#111Wanted: who's using Arthas/您在使用Arthas吗?221 comments · 2018-09-20#536Arthas 4.0计划22 comments · 2019-02-20#1168Support html view for WebUI17 comments · 2020-05-13#393Arthas源码分析15 comments · 2018-12-20#1874在k8s 临时容器 ephemeral container里 attach 问题14 comments · 2021-07-28#1269Enhance error! exception: java.lang.NoClassDefFoundError: class names don't match14 comments · 2020-06-19#2720trace spring intercept时不能正常工作12 comments · 2023-11-06#2849Proposal: 表达式体验优化与引擎更换11 comments · 2024-06-18
Discussions
#3214ccline — 在 zsh shell 中使用 AI,适合 Java 开发者0 comments · 2026-06-10#3169Arthas MCP Server这个功能非常不错0 comments · 2026-04-09#3036redefine热更新类型转换问题0 comments · 2025-06-28#3035Arthas 会有线程安全问题吗?0 comments · 2025-06-25#2935执行完某个命令后,执行ctrl+c会调用哪段代码0 comments · 2024-11-05#2907trace 命令如何设置自动打印request中的指定属性0 comments · 2024-09-19#2906arthas 如何获取request属性1 comments · 2024-09-19#2901在 java-1.8.0-openjdk-1.8.0.412 这个openJDK环境下 不能执行吗0 comments · 2024-09-14
Latest release
arthas-all-4.3.5 arthas-all-4.3.5 2026-08-31变更概览 - fix: 将 fastjson2 从 2.0.58 升级到 2.0.64,引入 AutoType 加固及解析器 OOM/DoS 修复,见 3261 - docs: 新增 Kubernetes 临时调试容器与 sidecar 跨容器 attach 指南 - docs: 新增中英文复杂 OGNL 表达式指南,并从相关命令与 API 文档统一链接,见 3262 - chore: 清理 CLI、README、Web Console 与站点文档中已失效的在线教程入口,见 3263 对比 - https://github.com/alibaba/arthas/compare/arthas-all-4.3.4...arthas-all-4.3.5