Tag

ClassFileTransformer

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 7, 2024 · Backend Development

Understanding and Implementing JavaAgent for Runtime Instrumentation

This article explains the concept, architecture, and practical implementation of JavaAgent for Java runtime instrumentation, covering its role, premain method, ClassFileTransformer usage, bytecode manipulation with ASM or Javassist, and step‑by‑step guidance to build, package, and attach a JavaAgent for method execution time monitoring.

BytecodeClassFileTransformerInstrumentation
0 likes · 10 min read
Understanding and Implementing JavaAgent for Runtime Instrumentation
Art of Distributed System Architecture Design
Art of Distributed System Architecture Design
May 6, 2016 · Backend Development

Using Java Instrumentation and Javassist for Non‑Intrusive Performance Monitoring

This article demonstrates how to employ Java's java.lang.instrument API together with Javassist to create a Java agent that instruments bytecode at runtime, enabling performance monitoring without modifying the original application code.

ClassFileTransformerInstrumentationJava
0 likes · 6 min read
Using Java Instrumentation and Javassist for Non‑Intrusive Performance Monitoring