Tagged articles
JavaAgent
30 articles · Page 1 of 1
This article introduces MyPerf4J, a Java‑agent based, low‑overhead performance monitoring tool that provides real‑time metrics such as RPS, latency percentiles, memory usage and GC statistics, and explains how to install, configure, run and uninstall it in development and production environments.
BackendJavaJavaAgent
0 likes · 7 min read

MyPerf4J is an open‑source, high‑performance Java monitoring and statistics tool that uses a JavaAgent for zero‑intrusion, records up to ten million method calls per second with nanosecond precision, and provides real‑time metrics such as QPS, latency percentiles, memory and GC stats, making it ideal for both development and production environments.
JavaJavaAgentMetrics
0 likes · 6 min read

MyPerf4J is a high‑throughput, low‑latency Java performance monitoring tool that uses a non‑intrusive JavaAgent to collect real‑time method, memory, GC, and class metrics, offering developers quick bottleneck detection in development and continuous observability in production.
JavaJavaAgentObservability
0 likes · 6 min read

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.
ArthasJavaJavaAgent
0 likes · 22 min read

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.
APMJavaAgentTrace Monitoring
0 likes · 30 min read

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.
JavaJavaAgentbytecode
0 likes · 20 min read

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.
BackendJavaJavaAgent
0 likes · 7 min read

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.
JavaJavaAgentbytecode
0 likes · 9 min read

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.
ExtensionJavaJavaAgent
0 likes · 14 min read

This article explains the background, principles, loading mechanisms, usage workflow, testing considerations, and advantages of JavaAgent technology for dynamic Java bytecode instrumentation and runtime protection.
JVMJavaAgentbytecode instrumentation
0 likes · 7 min read

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.
JavaJavaAgentMetrics
0 likes · 7 min read

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.
APMAgentClassLoaderJavaAgent
0 likes · 16 min read

This article details Qunar's end‑to‑end design and implementation of a distributed tracing platform, covering background, technology selection, architecture, data flow, performance bottlenecks, and concrete solutions such as Flume tuning, Kafka scaling, Flink back‑pressure handling, and JavaAgent instrumentation to achieve high trace connectivity and low failure rates.
APMFlinkJavaAgent
0 likes · 18 min read

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.
BackendJavaJavaAgent
0 likes · 6 min read

This article explains the root cause of the thread‑pool plugin enhancement failure in SkyWalking—duplicate AgentClassLoader instances—detailing the investigation steps, code changes, and two practical solutions to ensure reliable instrumentation of ThreadPoolExecutor.
ClassLoaderJavaAgentSkyWalking
0 likes · 18 min read

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.
Application SecurityIASTJavaAgent
0 likes · 13 min read

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 TracingFlink
0 likes · 18 min read

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

This article explains the principles, architecture, and practical implementation of distributed tracing—especially SkyWalking—in microservice environments, showing how it identifies call chains, isolates performance bottlenecks, and integrates with existing monitoring systems while maintaining low overhead and non‑intrusive instrumentation.
Distributed TracingJavaAgentObservability
0 likes · 20 min read


JD TechJul 27, 2022 · Backend Development
This article explains the Java parent‑delegation model, shows how to implement a custom ClassLoader for class hot‑swap and jar hot‑deployment, demonstrates Java SPI for dynamic service loading, and details building a plugin framework using Java Agent and Javassist for runtime bytecode enhancement.
ClassLoaderHotSwapJavaAgent
0 likes · 30 min read

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.
ASMException HandlingJava
0 likes · 13 min read

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

This article explains why hidden backdoor code in open‑source projects can be risky, introduces the open‑source Java firewall ja‑netfilter, and provides detailed instructions on installing, configuring, and debugging it to protect Java applications from unauthorized access.
JavaJavaAgentfirewall
0 likes · 5 min read

This article walks through the concepts, architecture, download, installation, agent setup, service startup, and alert configuration of Apache SkyWalking, an open‑source APM platform for cloud‑native microservices, including Elasticsearch integration and DingTalk notifications.
APMDingTalkElasticsearch
0 likes · 12 min read

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

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

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

This tutorial explains how to use Byte Buddy to build a JavaAgent for SkyWalking, debug and continuously integrate the agent, and develop custom SkyWalking plugins such as the kob scheduling framework, providing step‑by‑step code examples and configuration details for observability in Java backend services.
APMByteBuddyJavaAgent
0 likes · 12 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

The article introduces Qunit, a Java‑based API testing framework, and explains how zero‑intrusion aspect technology using a JavaAgent enables dynamic mock data recording and playback, while a distributed execution platform parallelizes test runs to dramatically reduce overall testing time.
AutomatedTestingDistributedTestingJavaAgent
0 likes · 10 min read
