Arthas Java Diagnostics

Diagnoses Java application performance issues and JVM problems in real-time using the Alibaba Arthas toolkit.

You say
Install this skill Read the source first Free Written by alibaba · unverified publisher
Context cost
3.2k tokensestimated from the bundle, loaded when it triggers
Bundle
4 files · 12.8 kBtext throughout, nothing executable
Licence
Apache-2.0free to use
Last change
no release on file
Servers it uses
Noneruns standalone

What it does

arthas 诊断 java应用,jvm问题 skill

Installed, it changes the agent in these ways.

What this skill changes about the agent is not written down here yet. The listing was collected from its source, and the description is in its own SKILL.md.

Expertise

Domain judgement the base model does not have.

analyticsjavaperformance

The skill itself

This is the whole product. A skill is instructions the model reads, so there is nothing behind the listing you cannot see first — the front matter loads with every session, and the body below it loads when the skill triggers.

SKILL.md2.8 kB · 66 lines
--- name: arthas description: arthas 诊断 java应用,jvm问题 skill ---
6# Arthas 诊断 Skill
7
8## Overview
9
10Arthas 是 Java 应用在线诊断工具,本 Skill 包含多个子场景的诊断指南。使用时请根据用户描述的问题匹配对应场景,按指南中的步骤逐步排查。
11
12**通用原则:**
13- 先用低风险、只读的命令收集信息,再按需使用有侵入性的命令。
14- 所有 watch / trace / tt / stack 等命令**必须**设置 -n(执行次数限制),避免对线上应用造成压力。
15- 输出结论时附上关键证据(命令输出摘要),并给出明确的下一步建议。
16
17---
18
19## 子场景索引
20
21### 1. CPU 飙高排查
22
23**文件:** cpu-high/SKILL.md
24
25适用场景:机器 CPU 飙高、应用响应变慢、负载异常升高。
26
27核心步骤:
281. dashboard 查看 CPU / 线程 / GC 概况
292. thread(topN)定位最忙线程及堆栈
303. 根据堆栈判断方向(CPU 密集计算 / 锁竞争 / GC 等)
314. 按需用 stack / trace / watch 进一步确认热点方法调用路径
325. 输出诊断结论(现象、证据、初步结论、下一步建议)
33
34---
35
36### 2. 获取 EagleEye traceId
37
38**文件:** eagleeye-traceid/SKILL.md
39
40适用场景:需要在不改代码的情况下,获取线上请求的 EagleEye traceId,用于关联日志 / 链路分析。
41
42核心步骤:
431. sc -d com.taobao.eagleeye.EagleEye 确认类存在
442. 选择合适的观察点(Controller / RPC Provider / Filter 等入口方法)
453. **方案 A**:watch + OGNL 表达式 @com.taobao.eagleeye.EagleEye@getTraceId() 直接打印 traceId
464. **方案 B**:trace 输出中自动带出 traceId,同时可看调用链耗时
475. 拿到 traceId 后去日志 / 链路系统查询对应请求
48
49---
50
51### 3. Spring Context / Bean 排查
52
53**文件:** spring-context/SKILL.md
54
55适用场景:排查 Spring ApplicationContext / Bean / 配置注入等问题。
56
57核心步骤:
581. vmtool --action getInstances 获取 AbstractApplicationContext 实例(注意通过 ClassLoader 区分正确的 Context)
592. 获取配置项的值与来源(getEnvironment().getProperty(...) / findConfigurationProperty(...)
603. containsBean / containsLocalBean / containsBeanDefinition 验证 Bean 是否存在(不触发初始化)
614. 按关键词过滤搜索 Bean(getBeanDefinitionNames + OGNL 过滤)
625. 按类型查找 Bean(getBeanNamesForType / getBeansOfType
636. 查看 BeanDefinition 确认 Bean 注册来源(@Bean 工厂方法 / XML / 自动扫描)
64
65**注意:** 先只读查询,避免直接 getBean() 触发 Bean 初始化产生副作用;若遇到 ClassNotFound,通常是类加载器不对,需先用 classloader 命令找到正确的 classLoaderHash
66
In the file
SKILL.md199 words
Files4
LicenceApache-2.0
Why you can read it

Nothing in a skill executes. The client loads the text and the model follows it, so a skill can be audited the way a runbook is — by reading it.

What it costs in context

Skills are not billed by the call. They are paid for in context: every token the instructions occupy is a token your code, your diff and your conversation cannot use. Here is what this one takes and when it takes it.

≈20
always loaded
The name and description, so the model knows the skill exists and when to reach for it.
3,180
on trigger
The instruction body and 3 supporting files, read only when the skill fires.
1.6%
of a 200k window
Ten skills this size would take about 16% of the window before you open a file.
050k100k150k200k context window

3.2k tokens, estimated from the bundle at four bytes to the token, held for the rest of the session once it triggers. Middling. Fine to keep on in a project where you use it weekly, worth unloading in one where you never do.

Servers bill, skills cost

A server charges by the month. A skill charges once per session, in context, and then keeps charging it for as long as the session lives.

Before and after

The same question, put to the same model twice: once as it comes, and once with these instructions loaded.

No worked example has been published for this skill yet.

Adoption
Installsnone yet
Ratingno reviews yet

The procedure it runs

The procedure has not been published here. It is in the skill’s own SKILL.md, which its author has not sent to the marketplace yet.

Prose, not code

These steps are written for a model to follow, not executed by a runtime. It can still be told to skip one, and it will say so when it does.

Servers it uses

None. This skill calls no MCP servers at all.

Everything it needs is in the instructions, so it works in a project with nothing connected — the model reads the file and changes how it works with what it can already reach.

It writes no files and reaches no network. All it changes is how the model reasons and writes.

What it asks for
Writes filesno
Network accessno

Read from the allowed-tools line of this skill’s own SKILL.md. A skill grants no permissions of its own — it can only ask for tools your client already has.

What it will not do

Every skill is narrow, and the useful ones say where they stop. These are the jobs this one is the wrong tool for.

What this skill is not for has not been published here. Nothing is implied by that: it is a section the author has not filled in.

What is in the bundle

4 files, 12.8 kB on disk. A bundle is text throughout: the instructions the model reads, plus the templates it fills in.

  • SKILL.md2.8 kB
  • cpu-high/SKILL.md1.8 kB
  • eagleeye-traceid/SKILL.md3.0 kB
  • spring-context/SKILL.md5.2 kB
What is not in it

No dependencies and nothing executable: a skill is text the agent reads, so the bundle is 4 files you can review in full before installing. The Apache-2.0 licence covers the templates and examples as well as the instructions.

Install

Installing copies the bundle into your project. Nothing runs at install time — the files sit on disk until the model reads them.

# Arthas Java Diagnostics · 3.2k tokens when loaded npx mcprush@latest skill add alibaba/arthas-java-diagnostics

Writes to .claude/skills/arthas-java-diagnostics/ in the current project. Add --global to put it in your home directory instead, for every project.

Which clients pick it up on their own

A skill is a folder of text. A client with a skills folder reads it without being told; everywhere else the same text works, it is just handed to the model rather than found.

Claude Code.claude/skills/
Claude Desktop
ChatGPT
Cursor.cursor/skills/
VS Code.github/skills/
Codex CLI.agents/skills/
Gemini CLI.gemini/skills/
Grok.grok/skills/
Zed.agents/skills/
Windsurf.windsurf/skills/
Agent SDK.claude/skills/
HTTP / API
This release
Versionnot versioned
Publishedno release date on file
PriceFree
Referencealibaba/arthas-java-diagnostics

Versions

Its author publishes no version number, so there is nothing here to pin to: what you install is the folder as it stands today. Instructions change more often than APIs do — a skill can be rewritten entirely without anything it depends on moving.

v
  • No earlier releases have been published to the marketplace.
Pinning

Nothing to pin to: this skill carries no version number of its own. What you install is what the folder holds on the day you install it.

Reviews

no reviews yet · no installs yet

Nobody has reviewed this skill yet. The rating is the mean of the reviews written here, so there is none until somebody writes the first.

Who can post

Only accounts that have had the skill installed for fourteen days, so a review is written after living with it rather than after reading it. Publishers may reply once.

Who wrote it

AL
alibaba

Publishes on mcprush.

0 servers listed1 skill listednot claimed
Profile
Publisher
Servers0
Claim this skill