Skip to content
Tagged articles

JOL

6 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.

Heap AnalysisJOLJVM Memory Optimization
0 likes · 25 min read
Java 27 Compact Object Headers: Real HTTP Benchmark Shows 300 Bytes/Session Saved
Code Ape Tech Column
Code Ape Tech Column
Sep 1, 2021 · Fundamentals

Understanding Java Object Memory Layout with JOL

This article explains how Java objects are stored in memory, covering the object header, instance data, alignment padding, lock states, pointer compression, and field reordering, and demonstrates how to inspect these structures using the OpenJDK JOL tool with practical code examples.

JOLJVMJava
0 likes · 20 min read
Understanding Java Object Memory Layout with JOL