Tagged articles
BTrace
17 articles · Page 1 of 1
This article explains how Java objects store attributes and shared behavior, describes the JVM method area where method bytecode resides, and demonstrates runtime bytecode manipulation using java.lang.instrument.Instrumentation, BTrace scripts, and the Arthas diagnostic tool to solve real‑world debugging problems.
ArthasBTraceJava
0 likes · 15 min read

This article walks through a real‑world case of off‑heap memory leakage in the Dble proxy, detailing symptom observation, log analysis, monitoring, BTrace instrumentation, code review, and the eventual fix that delays buffer allocation until needed.
BTraceDebuggingJava NIO
0 likes · 11 min read

This article explains how Java objects store behavior in the method area, introduces the java.lang.instrument.Instrumentation API for redefining classes at runtime, and demonstrates practical dynamic tracing techniques using BTrace and Arthas, complete with code examples and architectural insights.
BTraceJavabackend development
0 likes · 16 min read

This article explains how Java object behavior can be altered at runtime using the JVM method area, java.lang.instrument.Instrumentation, bytecode frameworks like ASM, the BTrace tracing tool, and the Arthas diagnostic utility, providing practical code examples and usage guidelines.
ArthasBTraceDynamicTracing
0 likes · 16 min read

This article explains how Java object behavior is stored in the JVM method area, how to use java.lang.instrument.Instrumentation, direct bytecode manipulation, BTrace, and Arthas to modify methods at runtime without changing object state, and provides practical code examples and tool architectures.
BTracebytecodedynamic tracing
0 likes · 16 min read

This article explains how Java object behavior is stored in the JVM method area, explores dynamic bytecode manipulation using java.lang.instrument.Instrumentation, demonstrates practical tracing with BTrace, and introduces Arthas as a user‑friendly diagnostic tool for runtime debugging and monitoring.
ArthasBTraceJVM
0 likes · 14 min read

This article explores how Java's method area stores object behavior, how the java.lang.instrument.Instrumentation API enables runtime class redefinition, and how tools like ASM, BTrace, and Arthas empower developers to inject bytecode, trace methods, and debug production systems without source changes.
BTraceBackendJava
0 likes · 16 min read

This article explains how Java objects store behavior and attributes, describes the JVM method area where method bytecode resides, and demonstrates practical dynamic tracing techniques using java.lang.instrument.Instrumentation, BTrace scripts, and the Arthas diagnostic tool.
ArthasBTraceJVM
0 likes · 15 min read

The article introduces AppTrace, a system that automatically captures, analyzes, and alerts on slow SQL statements during testing, aiming to resolve 60%‑80% of application performance issues by leveraging BTrace‑based tracing, execution‑plan comparison, and risk‑based alerting within Ctrip’s backend services.
AppTraceBTraceJava
0 likes · 9 min read

This article explains how Java object behavior is stored in the JVM method area, explores the java.lang.instrument.Instrumentation API for redefining and retransformation of classes, and demonstrates practical dynamic tracing and bytecode manipulation using tools like ASM, BTrace, and Arthas to inject logging and diagnostics at runtime.
ArthasBTrace
0 likes · 16 min read

This article explains how Java objects store behavior and state, describes the JVM method area where method bytecode resides, and demonstrates runtime class modification using java.lang.instrument.Instrumentation, BTrace scripts, and the Arthas diagnostic tool to solve real‑world debugging problems.
ArthasBTraceJVM
0 likes · 14 min read

This article walks through the root cause analysis of an OutOfDirectMemoryError in a Netty‑based MQTT IoT broker, detailing how to detect off‑heap memory leaks, monitor them with BTrace and custom metrics, and apply proper ByteBuf release and configuration fixes.
BTraceIoTMQTT
0 likes · 10 min read

After weeks of investigation, this post details how intermittent request timeouts in a high‑concurrency Java service were traced to frequent JVM stop‑the‑world pauses caused by GC, safepoint logging, biased lock revocation, and Log4j2’s synchronous logging, and outlines the steps taken to diagnose and resolve the issue.
BTraceGCJava
0 likes · 10 min read

The article explains how Java developers can dynamically trace and modify program behavior at runtime using the Instrumentation API, ASM bytecode manipulation, and the safe, annotation‑driven BTrace tool, illustrating techniques such as class redefinition, method interception, and examples like JSP recompilation and Arthas diagnostics.
BTraceJVMJava
0 likes · 16 min read

This article introduces BTrace, a lightweight JVM tracing tool, explains its capabilities and limitations, provides step‑by‑step installation and configuration instructions, demonstrates example scripts for monitoring thread pools and other runtime information, and discusses usage scenarios, annotations, and related tools.
BTraceJVM tracingJava debugging
0 likes · 17 min read

The article walks through diagnosing a Java memory leak by examining Full GC symptoms, using jstat, jmap, and BTrace to identify excessive Hashtable entries, tracing the offending code, and preparing for targeted optimization.
BTraceBackendJava
0 likes · 3 min read

The article outlines practical techniques for debugging live Java systems, emphasizing comprehensive distributed logging, global exception handling, proactive JStack usage, BTrace tracing, and custom JVM agents to quickly identify and resolve production issues.
BTraceDebuggingJVM
0 likes · 7 min read
