Skip to content Are you an AI agent? QIO facts, prices and requests are here

Technology2 min read

Java 27 is out: three changes your production will notice on day one

Java 27 shipped on 15 September 2026 and does not have long-term support (LTS): Java 25 remains the main production version and Java 29 will be the next LTS. Three JDK Enhancement Proposals (JEPs) describe changes worth testing before an upgrade. Each JEP number identifies one proposal.

Java 27 is out: three changes your production will notice on day one

JEP 534: compact object headers by default

The object header on a 64-bit JVM shrinks from 96–128 to 64 bits. For applications with millions of small objects that saves 10–20 % of heap, but the exact figure depends on the object graph: some services gain noticeably, others almost nothing. The change is on by default, so it shows up immediately.

Two containers with thick and thin lids, comparing header size
A 64-bit object header is one-third smaller than a 96-bit header and half the size of a 128-bit header.

The rule 'non-LTS only on staging' saves as many nerves as 'never update the CMS in production without a copy'. Java 27 belongs on a test environment for load measurements, not for the sake of a 'latest version' badge.

JEP 523: G1 becomes the default garbage collector

A JVM that previously chose Serial GC automatically in a small container now selects G1. Compare CPU use and pause times under load, since G1 does more work in parallel. If the JVM already chose G1, the default change leaves the collector in place. An explicit collector flag still takes precedence.

JEP 536: secrets hidden in JFR

Java Flight Recorder (JFR) filters sensitive values in events that capture environment variables and system properties. For example, when it records a property called spring.datasource.password, it hides the value. The filter matches names. A password written in an unrelated text field can still appear in a recording.

Removed flags and diagnostics

Check startup scripts: several options are gone for good or renamed.

  • Removed: -noclassgc, -noverify, -verifyremote, -Xverify:none.
  • Renamed: -XX:InitiatingHeapOccupancyPercent to -XX:G1IHOP.
  • Deprecated: -XX:UseCompressedClassPointers.
  • The new jcmd <pid> VM.security_properties command shows TLS configuration.
  • The JSON thread dump gains formatVersion 2 and numeric values instead of strings, for example "tid": 42.

What to do before upgrading

Run load tests and compare memory use and CPU profile before and after, especially for resource-limited containers. Make sure startup scripts do not use removed flags and dump parsers understand the new JSON format. If production runs on the LTS line, Java 27 stays a staging version for early acquaintance with changes that will arrive in Java 29.

Summary

Java 27 is not LTS, but its runtime changes are real: thinner headers, G1 by default, secret masking in JFR. Test, update scripts and keep production on Java 25 until Java 29.

Sources

  1. Java 27 is released (Habr, Spring AIO, in Russian)
  2. OpenJDK: JDK 27 project
  3. OpenJDK: JEP index
  • Java
  • OpenJDK
  • JEP
  • G1 GC
  • JFR

Follow the journal

New pieces on websites, SEO and AI come out in the QIO journal. Follow in Google, by RSS or in Telegram to get them first.

Read next

How can we help?
Discuss a project