Operations 3 min read

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.

FunTester
FunTester
FunTester
Quick‑Start Guide to Arthas: Debugging Java Applications in Minutes

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.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

DebuggingJavaperformanceOperationsTutorialArthas
FunTester
Written by

FunTester

10k followers, 1k articles | completely useless

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.