Repository navigation
Conversation
…tion Runs Spring PetClinic with the tracer under steady load and retransforms loaded classes at 60 s of uptime: the deferred-integrations feature, or an agent retransforming hot Spring, Tomcat and Thymeleaf classes with identical bytes (one call, or one call per class). Joins per-second throughput and latency with JFR deoptimizations and compilations, and prints the lost work. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
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.
What Does This Do
Adds
dd-java-agent/benchmark-integration/retransform-warmup/, a benchmark for what retransforming already-loaded, hot classes costs a running application.It runs Spring PetClinic with the tracer under steady load, and at 60 s of JVM uptime (well after warmup) does one of:
baselinedeferreddd.experimental.defer.integrations.until=60s: the tracer retransforms the classes it deferredcontrolcontrol-eachretransformClassescall per classrun.sh <arm>fetches PetClinic at the pinned commit (fetch-petclinic.sh), sends traces to the existing Agent stub, records JFR, and prints a summary. The per-second timeline joins throughput and latency with JFR deoptimizations, compilations and compile time.Motivation
Moving work out of startup by applying instrumentation late is often assumed to be cheap. But retransforming a class makes the JVM discard the compiled code of that class and of everything that inlined it, even when the bytes don't change, and the application warms up again under live traffic. Instrumentation targets the classes every request flows through, so late transformation hits exactly the classes where this costs the most. This benchmark makes that cost measurable, so we can compare it with what moving the work saves.
Results so far (JDK 17, 8-core laptop, one run per arm):
control(identical bytes, one call)deferredcontrol-eachA later
controlrun on a busier machine dropped 65% and lost 2.1 s, so single runs vary a lot. The README has the full table and caveats.Additional Notes
default.jfc(compilation threshold lowered to 0 ms) rather than committed.🤖 Generated with Claude Code