Tagged articles
JVMTI
12 articles · Page 1 of 1
pfinder, JD’s in‑house APM system, provides full‑link monitoring, multi‑dimensional metrics, automatic instrumentation, topology mapping, trace analysis, AI‑driven fault detection by leveraging bytecode enhancement techniques such as ASM, Javassist, ByteBuddy and ByteKit, and integrates with JVM agents for hot‑deployment and trace propagation.
APMJVMTIJava
0 likes · 18 min read

This article provides a comprehensive technical overview of JD's self‑built PFinder APM system, detailing its core concepts, multi‑dimensional monitoring capabilities, bytecode‑enhancement mechanisms using ASM, Javassist, ByteBuddy and ByteKit, JVMTI‑based agents, service and plugin loading, trace‑ID propagation across threads, and a prototype hot‑deployment solution.
APMAgentJVMTI
0 likes · 18 min read

By patching ART’s internal debug flags to enable JVMTI on non‑debuggable apps, the authors created TBProfiler, a lightweight Android profiling tool that uses JVMTI’s event callbacks to trace method calls, thread and exception events, lock contention, and memory allocations, producing a compact mini‑hprof for production‑grade runtime monitoring and analysis.
AndroidJVMTIRuntime monitoring
0 likes · 20 min read

This article explains how Android's JVMTI (ART Tooling Interface) works, details its monitoring capabilities, shows how to overcome debug‑only restrictions by modifying JDWP and Runtime flags, and describes the TBProfiler tool that leverages JVMTI for method, thread, exception, lock, and memory profiling in production apps.
AndroidJVMTIMemory
0 likes · 25 min read

This article explains how to employ the Java Virtual Machine Tool Interface (JVMTI) in native Android code to record memory allocation and deallocation events, filter relevant classes, store logs efficiently with mmap, and integrate the agent from the Java layer for comprehensive memory‑leak analysis.
AndroidJVMTImemory monitoring
0 likes · 15 min read

This article explains the principles behind JVM monitoring tools by introducing JVMTI, the Java Instrumentation API, startup and runtime agents, the Attach mechanism, and demonstrates bytecode manipulation with ASM through detailed code examples and diagrams.
ASMJVMJVMTI
0 likes · 17 min read

The article explains why production‑grade Java debugging must avoid stopping the JVM, then details Java‑Agent technology—including JVMTI, startup and runtime loading via the Attach mechanism—and shows how class redefinition and ASM‑based bytecode instrumentation can be combined in a TCP‑server tool to perform online fault isolation without pausing the application.
AgentJVMTIJava
0 likes · 34 min read

The article explains how JVM CPU profilers work by using Java or native agents—via JVMTI, JMX, or the AsyncGetCallTrace hack—to sample or instrument stack traces, generate flame graphs, and employ the HotSpot Attach API for live, zero‑restart agent loading and diagnostics.
CPU ProfilerJVMJVMTI
0 likes · 30 min read

An encrypted Spring @Component class causes a startup failure because Spring reads class files as raw byte arrays using ASM before loading them, and the encrypted bytecode violates JVM specifications, leading to an ArrayIndexOutOfBoundsException; the article explains this scanning mechanism and the hidden cause.
ASMClass LoadingJVMTI
0 likes · 10 min read

This article explains how to use Java Instrumentation, the Attach API, JVMTI, and the ASM bytecode manipulation framework to inject AOP logic that measures and logs method execution time, providing a step‑by‑step guide with code examples and a discussion of practical considerations.
AOPASMJVMTI
0 likes · 16 min read

This article explains the JavaAgent feature introduced after JDK 1.5, its reliance on JVMTI and JPLISAgent, how to write premain classes and class file transformers, the role of MANIFEST.MF, and analyzes conflicts between Javassist‑based and ByteBuddy‑based agents when they modify the same class.
ByteBuddyJVMJVMTI
0 likes · 17 min read

This article details a telecom operator's journey to cloud‑native operations, outlining the challenges of scaling monitoring, the design of a five‑level visual monitoring framework, the integration of open‑source tools like Ganglia, Nagios and JVMTI, and concrete implementation steps and results.
GangliaJVMTINagios
0 likes · 18 min read
