Skip to content
Jaroslav Bachorik edited this page Jul 12, 2026 · 13 revisions

BTrace

BTrace is a safe, dynamic tracing tool for understanding live Java applications. It instruments a running JVM temporarily, so you can answer a focused question without changing application code or restarting the process.

Latest stable release: BTrace 2.2.6.

Quick start

For the latest stable release, attach a Java probe:

btrace <PID> MyTrace.java

Stable 2.2.x probes use the org.openjdk.btrace namespace.

Choose a workflow

BTrace and JFR

JFR provides continuous, low-overhead history. BTrace can be used alongside JFR for targeted observations while diagnosing a live application.

Project links

Clone this wiki locally