Description
BTrace is a tool for safe, dynamic tracing of Java applications. It instruments a running Java program to inject tracing code at runtime, so you can diagnose a live process without restarting it or recompiling it. The README describes it as production-safe, because verified scripts cannot crash the application. It supports probes for method entry and exit, timings, field access and allocations, and it adds bytecode with a small performance cost. The README lists the supported Java versions: BTrace 3.0 runs on Java 8 to 27 and later, and running it against a JVM older than Java 17 is deprecated, though it keeps working throughout the 3.x releases with a warning. The repository has a quick reference and a step-by-step tutorial, along with a get-started section that takes about thirty seconds. It has contributing guidelines and a security policy. BTrace suits Java developers and operations engineers who need to find out why a live service is slow or misbehaving and who cannot take it down to add logging. The source is public on GitHub.…
Highlights
- Attach to live JVMs with no restart
- Probes for method entry, exit, timings and allocations
- Verified scripts that cannot crash the app
- Supports Java 8 to 27 and later
Ratings & Reviews
No ratings yet
Be the first to rate Btrace.
People also visit
JDK Mission Control
Tools to manage, monitor, profile and troubleshoot Java applications
Btrace FAQ
What is BTrace?
A tool for dynamically tracing Java applications by injecting tracing code into a running JVM.
Is it free?
The project is open source and its source is public on GitHub. The README does not list prices.
Do I need to restart my app?
No. The README says BTrace attaches to running JVMs with no restart or recompilation.
Which Java versions does it support?
BTrace 3.0 runs on Java 8 to 27 and later. Use with a JVM older than Java 17 is deprecated.
What can it measure?
Method entry and exit, timings, field access and allocations, according to the README.
What are the best Btrace alternatives?
Popular alternatives to Btrace include JDK Mission Control, Hawtio and Appdbg. See all Btrace alternatives



