VMStructs: Why an Application Should Know JVM Internals
summary
Describes VMStructs, a HotSpot VM API that lets an application inspect JVM internal structures such as TLAB, Code Cache, Constant Pool, Method, and Symbol. Shows concrete examples of using VMStructs to build real tooling and diagnostics used in projects at Odnoklassniki, arguing the API can be useful beyond hacky uses.
AI-written summary · about
chapters (20)
- 0:00VMStructs introduction
- 1:47Cassandra query latency issue
- 5:44JVMTI memory allocation
- 7:53HotSpot internals root cause
- 10:04JVM memory allocation
- 11:32HotSpot native structures
- 13:39Serviceability Agent offsets
- 16:35VMStructs library intro
- 17:43VMStructs vs JVMTI benchmark
- 18:47Fixing Cassandra queries
- 19:53Remote call instrumentation
- 21:20Thread prioritization OS
- 23:07Disk I/O interference demo
- 24:53OS thread ID in Java
- 26:02Exception handling alternative
- 28:36Class fields with VMStructs
- 31:52Local variable debugging
- 34:54VMStructs security risks
- 36:24Conclusion
- 37:20Q&A
