Quick‑Start Guide to Arthas: Debugging Java Applications in Minutes
Learn how to install and launch Alibaba’s open‑source Arthas tool, explore its dashboard, run essential commands like thread and watch, and see a practical Java demo, all in a concise step‑by‑step tutorial that gets you debugging Java processes fast.
Arthas is an open‑source Java diagnostic tool from Alibaba that helps developers monitor and troubleshoot running Java processes. This article provides a quick‑start tutorial covering installation, launching, and basic commands.
Official documentation:
https://alibaba.github.io/arthas/Quick‑Start Steps
Start a demo Java application.
Launch Arthas and attach to the demo process.
Open the Arthas dashboard to view runtime information.
Use the thread command to list threads of the target process.
Apply the watch command to monitor method calls or field values.
Exit Arthas when debugging is complete.
Demo Code Used for the Tutorial
package com.fun;
import com.fun.frame.httpclient.FanLibrary;
import com.fun.utils.RString;
class sd extends FanLibrary {
public static void main(String[] args) {
while (true) {
sleep(1000);
RString.getStringWithoutNum(10);
sleep(1000);
String url = "https://api.apiopen.top/getAllUrl";
def get = getHttpGet(url);
def response = getHttpResponse(get);
}
testOver();
}
}The author notes that the demo code is original and requests that third parties do not repost without permission.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
