Repository navigation
Conversation
… jafar main changes The plugin pins io.btrace:jfr-mcp:0.29.0. btraceio/jafar#248 (1fe4cff) fixed thread attribution on main, unreleased: 0.29.0 reads a sample's thread from eventThread, which jdk.ExecutionSample and jdk.NativeMethodSample lack, so jfr_tsa files every sample under one "unknown" thread (also totalThreads, jfr_use's active-thread count and jfr_diagnose's TSA pass), decorateByTime defaults to eventThread/javaThreadId on both sides, and stack profiles label threads by OS name first. The skills now say how to recognise a 0.29.0 result and what the first release after it does. latency told the agent to find contending code by joining jdk.ExecutionSample with decorateByTime(jdk.JavaMonitorWait) and to read the undecorated rows as an uncontended baseline. On 0.29.0 that join decorates no sample. Even with the thread fixed, JFR takes no execution sample of a waiting thread: a JDK 21 probe with one thread alternating 100 ms of spinning and Object.wait(100) recorded 42 samples and 29 waits on it, none of the samples inside a wait. The skill now uses the monitor events' own stack traces. The time-window and query-cost text from e908269 described post-0.29.0 behaviour as current. 0.29.0 compares jfr_use/jfr_tsa bounds directly with epoch event start times (JfrAnalyses.buildTimeFilter at v0.29.0), so the skill now recommends epoch bounds, which work on both versions, and reserves the timeWindow epoch fields and the pushdown advice for the later release. report notes that 0.29.0 jfr_query results on multi-chunk recordings can be short and vary between runs (#204). Verified: validate-repository.js and validate-evals.js pass; validate-marketplace.sh passes up to its BTrace source-facts step, which needs a BTrace checkout. check-tool-references.js could not run (no jbang here); instead, every tool name the plugin references is present in the jfr-mcp contract snapshot at bb766fb (day after v0.29.0) and at jafar main, whose tool sets are identical. No server was run to observe the behaviour; the 0.29.0 and main claims come from the source at those revisions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qr5KuhtdRBUtZiTzWsCcC7
- latency, concurrency-analyst: allow jfr_flamegraph, which the latency skill now calls for contending code; it was missing from allowed-tools and the agent's tools list. - latency: add JavaMonitorWait and ThreadPark flame graphs next to the JavaMonitorEnter one, so condition waits and j.u.c parking get code paths. Both events carry a stackTrace (JDK 21 jfr metadata). - gc: replace "what is running during GC", which joined execution samples with a jdk.GCPhase event that JDK 21 does not define, on the same thread, although GC phases are recorded on GC threads. Collector CPU now comes from jdk.GCCPUTime. - cpu: drop the pointer to the latency decorateByTime technique this branch removed; point at the jfrpath thread-path rules. - jfrpath: write the decorateByTime template with thread paths before fields=, which is the only order 0.29.0 parses. - concurrency-analyst: stop pointing at decorateByTime correlations. - report: the 0.29.0 multi-chunk caveat names jfr_flamegraph, which runs the same query engine as jfr_query. Verified: validate-repository.js and validate-evals.js pass; validate-marketplace.sh passes up to its BTrace source-facts step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qr5KuhtdRBUtZiTzWsCcC7
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The plugin pins
io.btrace:jfr-mcp:0.29.0. btraceio/jafar #204, #206 and #248 changed behaviour on jafarmain, and none of them is released yet (0.29.0 is still the newest version on Maven Central). This PR describes what 0.29.0 does and words each change as "from the first release after 0.29.0".Changes
jfr_tsaon 0.29.0 files everyjdk.ExecutionSampleunder one thread namedunknown. That also breaksthreadProfiles,topThreadsByState,totalThreadsand the active-thread count ofjfr_use.stateDistributionis unaffected.startTimeexcludes nothing and an offsetendTimeexcludes every event. ThetimeWindowepoch fields are documented as present only from the release after 0.29.0.ExecutionSample | decorateByTime(JavaMonitorWait)"what code contended" step withjfr_flamegraphonjdk.JavaMonitorEnter,jdk.JavaMonitorWaitandjdk.ThreadPark. On 0.29.0 that join decorates no sample. Even after #248, JFR takes no execution sample of a waiting thread. A JDK 21 probe recorded 42 samples and 29 waits on one thread, with no sample inside a wait.jfr_flamegraphis added to the skill'sallowed-toolsand to concurrency-analyst'stools.decorateByTime's default thread paths, with the 0.29.0 workaround:threadPath=sampledThread/javaThreadId. The syntax template now puts thread paths beforefields=, the only order 0.29.0 parses.eventThread/…is null for everyjdk.ExecutionSampleandjdk.NativeMethodSample.jdk.GCPhase, an event type JDK 21 does not define, on the same thread, although GC phases are recorded on GC threads. It is replaced with collector CPU fromjdk.GCCPUTime.threadCounts{}come from the OS name first on 0.29.0 and the Java name first afterwards. The pointer to the removed latencydecorateByTimetechnique now points to the jfrpath thread-path rules.unknownthread. concurrency-analyst no longer points atdecorateByTimecorrelations.jfr_queryandjfr_flamegraphresults can be short and vary between runs (#204).When the pin moves to a release that contains 1fe4cff, the 0.29.0 sections can be dropped.
Verification
validate-repository.jsandvalidate-evals.jspass locally.validate-marketplace.shpasses locally up to its BTrace source-facts step, which needs a BTrace checkout.check-tool-references.jscould not run locally (no jbang in the session). CI's "Skills reference tools that exist" job, which runs it, passed on 0264fc0. Locally, every referenced tool name is also in the jfr-mcp contract snapshot at bb766fb (the day after v0.29.0) and at jafar main; the two tool sets are identical.v0.29.0and at1fe4cff. Suggested smoke test on 0.29.0 with a multi-chunkjdk.ExecutionSamplerecording:jfr_tsashows a singleunknownthread;jfr_use/jfr_tsawith epoch bounds apply the window;jfr_flamegraph eventType=jdk.JavaMonitorWaitreturns stacks.Not changed
jfr-analyzeralso usesjfr_tsa. It is not reviewed here.🤖 Generated with Claude Code
https://claude.ai/code/session_01Qr5KuhtdRBUtZiTzWsCcC7