Resource Tracking Techniques
summary
Adds a mechanism-only resource tracking system to the Oracle JDK (implemented in 8u40) that records opens, bytes, threads, CPU samples and retained heap per execution unit using resource contexts and per-type meters. Instrumentation uses JVM TI bytecode injection and ASM templates for library hooks and integrates with G1 GC to attribute regions to contexts. Meters support approving, throttling and bounding; measured overhead is under 2% on a SPECjbb mix (design goal was 5%), and the feature is a commercial JDK extension.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 0:42Agenda
- 2:23Typical Use Case
- 3:17Resource Model
- 5:15Resource Context
- 7:04Resource Factory
- 9:43Simple Meter Interface
- 10:43Meter Exceptions
- 11:39Callback Monitor
- 12:02Resource Approver
- 13:22Instrumentation
- 13:54Template Infrastructure
- 15:29Template Mechanism
- 18:52Writing Instrumentation
- 21:53G1 Collector
- 27:36Policy Engine
related talks
31mJava Mission Control: To Infinity and Beyond…
42mProfiling and monitoring with the JDK
30mInstrument Your Java Applications with OpenTelemetry!
46mContinuous Monitoring with JDK Flight Recorder
42mOff-CPU Profiling & Latency Diagnostics in Java
39mProfiling and Monitoring with the JDK
48mThreadSanitizer and Heap Sampling
51mThe Power of JDK Flight Recorder: Efficient Profiling and Troubleshooting for Java Applications
