Tag

JavaAgent

1 views collected around this technical thread.

Architect
Architect
Jun 14, 2025 · Backend Development

Mastering Java Instrumentation: Non‑Intrusive Method Timing with Agents and Arthas

This article explains how to replace invasive manual timing code with Java Instrumentation, demonstrating both premain and agentmain approaches, building and attaching agents, using ASM and Bytekit for bytecode enhancement, and leveraging Arthas for runtime tracing and debugging.

ArthasBytecodeInstrumentation
0 likes · 22 min read
Mastering Java Instrumentation: Non‑Intrusive Method Timing with Agents and Arthas
vivo Internet Technology
vivo Internet Technology
Apr 9, 2025 · Operations

Vtrace Trace Enhancement: Implementing Continuous Profiling for Method-Level Monitoring

Vtrace’s new continuous profiling feature fills previous Trace blind spots by sampling method‑level execution via JMX, delivering detailed intra‑service insights comparable to leading APM tools while keeping CPU overhead under five percent even at high transaction rates.

APMJMXJavaAgent
0 likes · 30 min read
Vtrace Trace Enhancement: Implementing Continuous Profiling for Method-Level Monitoring
Architect
Architect
Nov 19, 2024 · Backend Development

Java Agent and Instrumentation: Non‑Intrusive Method Timing, Attach API, and Arthas Trace

This article demonstrates how to replace invasive manual timing code with Java Agent‑based instrumentation, covering the use of java.lang.instrument, premain and agentmain methods, dynamic class retransformation via the Attach API, and practical examples including method‑level timing, runtime class modification, and integration with Arthas for tracing.

ArthasBytecodeInstrumentation
0 likes · 20 min read
Java Agent and Instrumentation: Non‑Intrusive Method Timing, Attach API, and Arthas Trace
Architect
Architect
Sep 13, 2024 · Operations

Introducing MyPerf4J: A High‑Performance Java Monitoring and Statistics Tool

The article presents MyPerf4J, a Java‑agent based, low‑overhead performance monitoring library that provides real‑time metrics such as method latency, QPS, memory usage, GC statistics, and class loading, along with quick‑start instructions, configuration details, and open‑source links for Java backend services.

JavaJavaAgentbackend
0 likes · 7 min read
Introducing MyPerf4J: A High‑Performance Java Monitoring and Statistics Tool
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 31, 2024 · Backend Development

Developing OpenTelemetry Instrumentation for PowerJob Using Java Agent and ByteBuddy

This article explains how to create OpenTelemetry instrumentation for the PowerJob distributed scheduler by implementing a Java agent with ByteBuddy, covering background, prerequisite knowledge, entry point discovery, version selection, implementation details, common pitfalls, Muzzle validation, and unit testing.

ByteBuddyInstrumentationJavaAgent
0 likes · 16 min read
Developing OpenTelemetry Instrumentation for PowerJob Using Java Agent and ByteBuddy
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 29, 2024 · Backend Development

Understanding JavaAgent: Principles, Implementation, and a Practical Timing Example

This article explains the concept of JavaAgent, its underlying mechanism using the JVM instrumentation API, and provides a step‑by‑step guide with code samples to build a JavaAgent that measures method execution time in a Spring application.

BytecodeInstrumentationJava
0 likes · 9 min read
Understanding JavaAgent: Principles, Implementation, and a Practical Timing Example
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
Sohu Tech Products
Sohu Tech Products
Apr 17, 2024 · Operations

Developing an OpenTelemetry Extension for Pulsar Java Client Metrics

The article walks through building a custom OpenTelemetry Java‑agent extension for Pulsar client metrics—migrating from SkyWalking, setting up a Gradle project, using ByteBuddy to instrument methods with advice, registering gauge metrics, packaging the jar, handling common class‑loader pitfalls, and configuring deployment via the OpenTelemetry operator.

InstrumentationJavaJavaAgent
0 likes · 14 min read
Developing an OpenTelemetry Extension for Pulsar Java Client Metrics
Top Architect
Top Architect
Jul 11, 2023 · Operations

Introducing MyPerf4J: A High‑Performance Java Monitoring and Statistics Tool

MyPerf4J is a Java‑agent based, low‑overhead performance monitoring library that provides real‑time method, memory, GC and class metrics for high‑concurrency, low‑latency applications, offering quick start, configurable properties, and detailed statistical reports for both development and production environments.

JavaJavaAgentbackend
0 likes · 7 min read
Introducing MyPerf4J: A High‑Performance Java Monitoring and Statistics Tool
Code Ape Tech Column
Code Ape Tech Column
Jul 10, 2023 · Operations

Fixing SkyWalking ThreadPool Plugin Enhancement Failure by Making AgentClassLoader a Singleton

This article details the investigation of a SkyWalking thread‑pool plugin enhancement failure caused by multiple AgentClassLoader instances, explains the debugging steps, class‑loading behavior, and provides two practical solutions to ensure proper bytecode instrumentation for ThreadPoolExecutor in Java applications.

APMAgentClassLoaderInstrumentation
0 likes · 16 min read
Fixing SkyWalking ThreadPool Plugin Enhancement Failure by Making AgentClassLoader a Singleton
Architecture Digest
Architecture Digest
Jun 27, 2023 · Operations

MyPerf4J – High‑Performance Java Performance Monitoring and Statistics Tool

MyPerf4J is a Java‑agent based, low‑overhead monitoring solution that provides real‑time method, memory, GC and class metrics, enabling developers to quickly locate performance bottlenecks and assess service capacity in both development and production environments.

JavaJavaAgentbackend
0 likes · 6 min read
MyPerf4J – High‑Performance Java Performance Monitoring and Statistics Tool
360 Tech Engineering
360 Tech Engineering
Jun 21, 2023 · Information Security

Implementing an IAST Java Agent with Javassist for Runtime Application Security Testing

This article explains the principles of Interactive Application Security Testing (IAST), details the JavaAgent-based agent instrumentation approach, and provides a step‑by‑step guide to building a Java IAST agent using Javassist, custom class loaders, ThreadLocal tracing, and Maven packaging.

IASTJavaAgentJavassist
0 likes · 13 min read
Implementing an IAST Java Agent with Javassist for Runtime Application Security Testing
Qunar Tech Salon
Qunar Tech Salon
Jun 2, 2023 · Operations

Design and Implementation of a Distributed Tracing System at Qunar: Architecture, Technical Selection, and Performance Optimizations

This article describes the background, technology selection, architecture design, data flow, monitoring, logging, and trace collection mechanisms of Qunar's self‑built distributed tracing system, analyzes major performance problems such as Flume interruptions, Kafka bottlenecks, Flink back‑pressure, and presents concrete solutions including sliding‑window throttling, CGroup limits, and JavaAgent instrumentation, ultimately improving trace connectivity and system observability.

APMDistributed TracingJavaAgent
0 likes · 18 min read
Design and Implementation of a Distributed Tracing System at Qunar: Architecture, Technical Selection, and Performance Optimizations
Architect
Architect
Jan 30, 2023 · Backend Development

Unified Exception Monitoring and Reporting with ASM and JavaAgent

This article explains how to use Java bytecode instrumentation with ASM and a JavaAgent to automatically monitor, capture, and report exceptions across a backend system, covering exception fundamentals, best‑practice handling, and practical implementation steps.

ASMException HandlingJava
0 likes · 14 min read
Unified Exception Monitoring and Reporting with ASM and JavaAgent
Zhuanzhuan Tech
Zhuanzhuan Tech
Jun 29, 2022 · Backend Development

Unified Exception Monitoring and Reporting with ASM and JavaAgent in Java Backend Development

This article explains Java exception fundamentals, best‑practice handling, and demonstrates how to use ASM bytecode enhancement together with a JavaAgent to automatically capture, monitor, and report exception information in a non‑intrusive way for backend services.

ASMBackend DevelopmentException Handling
0 likes · 13 min read
Unified Exception Monitoring and Reporting with ASM and JavaAgent in Java Backend Development
JD Retail Technology
JD Retail Technology
Jun 14, 2022 · Backend Development

Understanding Java ClassLoader, Custom ClassLoaders, Hot Swapping, SPI, and Java Agent Plugin Framework

This article explains the Java parent‑delegation model, shows how to implement custom ClassLoaders for class hot‑swap and jar hot‑deployment, demonstrates SPI‑based class replacement, introduces Java Agent premain/agentmain mechanisms, and presents a plugin framework that combines SPI, Java Agent, and Javassist for dynamic enhancement.

ClassLoaderHotSwapJava
0 likes · 27 min read
Understanding Java ClassLoader, Custom ClassLoaders, Hot Swapping, SPI, and Java Agent Plugin Framework
vivo Internet Technology
vivo Internet Technology
Nov 18, 2020 · Cloud Native

vivo Distributed Tracing System Agent Technology Principles and Practical Experience

The 2017‑initiated vivo distributed tracing system leverages a JavaAgent‑based micro‑kernel architecture, using ByteBuddy for non‑intrusive bytecode instrumentation, a Disruptor lock‑free queue, and Kafka to capture Trace/Span data—including cross‑thread propagation—while employing sampling, degradation, and JVM metrics to ensure 94% adoption stability.

DisruptorDistributed TracingJavaAgent
0 likes · 23 min read
vivo Distributed Tracing System Agent Technology Principles and Practical Experience
vivo Internet Technology
vivo Internet Technology
Sep 23, 2020 · Backend Development

Bytecode Enhancement with JavaAgent: Principles, Tools, and Implementation

The article explains how to enhance Java bytecode using a javaagent, covering bytecode fundamentals, agent loading during JVM startup, implementation steps, transformation via ClassFileTransformer, and popular tools such as ASM, Javassist, and ByteBuddy for non‑intrusive runtime instrumentation and monitoring.

AOPASMByteBuddy
0 likes · 13 min read
Bytecode Enhancement with JavaAgent: Principles, Tools, and Implementation