Extreme scaling with Alibaba JDK
summary
Alibaba customizes OpenJDK into AJDK and runs it on over 100,000 servers to hit 325,000 transactions/sec; engineering work adds a GC‑free “hidden regions” allocator (TCH) that stores tenant objects outside normal GC, maps JVM threads into Linux control groups for per-tenant CPU/heap limits, integrates user‑mode lightweight threads/co‑routines (continuations) with a selector‑based scheduler to avoid blocking, and ships an agent + server profiler for online warm‑up and hot‑method and metaspace diagnostics.
AI-written summary · about
chapters (49)
- 0:00Introduction and agenda
- 1:06Alibaba ecosystem overview
- 3:26Java usage at Alibaba scale
- 4:35Why customize OpenJDK
- 5:40Key challenges in Java scaling
- 7:27Multi-tenancy in JVM
- 9:15Multi-tenant JVM requirements
- 10:42Tenant container API details
- 11:49Thread and tenant relationship
- 12:30Linux control groups integration
- 13:13Native OS mapping in JVM
- 14:40Heap management for tenants
- 15:45Heap region isolation
- 16:48Allocation context switching
- 18:15GC pause time recalculation
- 19:01Cheesy invariant heap benefits
- 20:09TCH architecture overview
- 22:19Multi-tenant JVM in production
- 23:45TCH performance gains
- 24:30Project Panama insights
- 25:58Continuations in Java
- 27:27Motivation for continuations
- 28:37Base engine for continuations
- 28:58Co-routine implementation
- 31:36Continuation primitives in OpenJDK
- 32:41User-mode scheduler design
- 33:46Selector-based scheduling
- 35:33Base engine scheduler details
- 36:38Scheduling conditions
- 37:44Wisp thread lifecycle
- 38:32Synchronization in co-routines
- 40:17Inflated lock handling
- 41:48Deadlock resolution example
- 42:08Co-routine performance gains
- 43:17JVM warm-up challenges
- 44:51Traditional warm-up issues
- 45:31Chima warm-up solution
- 46:39Class initialization handling
- 47:21Chima warm-up performance
- 49:09Chima warm-up considerations
- 49:53Compatibility and constraints
- 50:15Internal profiling tools
- 51:00HotSpot profiling features
- 51:44Message tracing functionality
- 52:27Meta space and code cache analysis
- 53:12Profiler architecture
- 53:55Post-mortem diagnostics
- 54:38Profiler workflow
- 55:00Summary and contributions
