Tagged articles

JVM Memory Optimization

2 articles · Page 1 of 1
Tech Musings
Tech Musings
Sep 17, 2026 · Backend Development

Java 27 Compact Object Headers: Real HTTP Benchmark Shows 300 Bytes/Session Saved

This article benchmarks Java 27's default Compact Object Headers against Java 8 and Java 27 with the feature disabled, using identical bytecode. In a Spring Boot authentication service, COH reduces per-session heap by ~300 bytes (10% total heap), with total upgrade savings of ~21%. Benefits scale with active small object count, while hashCode and locking remain fully compatible.

Compact Object HeadersGarbage CollectionHeap Analysis
0 likes · 25 min read
Java 27 Compact Object Headers: Real HTTP Benchmark Shows 300 Bytes/Session Saved