JavaAgent:查看版本 v4
由 mcst12345 于 2026-10-04 02:09 保存 · 818 字节
Java自帶的調試接口,常用於運行時字節碼注入。
Java's debug interface, commonly used for runtime class bytecode injection.
== 相关/Related ==
* 核心接口及获取方式见 [[Instrumentation]],JDK 内部实现见 [[InstrumentationImpl]],底层依赖 [[JVMTI]]。
* See [[Instrumentation]] for provided methods and how to load a javaagent, see [[InstrumentationImpl]] for default implementation at runtime, see [[JVMTI]] for underlying mechanism.
* 目前最常用的加载方式是'''运行时外部进程附加''',不需要任何启动参数,详见 [[Instrumentation]] 的“运行时外部进程附加”一节。
* "runtime attach" is the most commonly used method to load a javaagent at present, it doesn't require any commandline arguments, see [[Instrumentation]] for more details.