OpenJDK Terminology

Stop-the-World Pause

July 03, 2026

A stop-the-world (STW) pause is a period during garbage collection when all application threads are suspended so the GC can safely examine and modify the heap. Because objects cannot move or be created while pointers are being updated, the collector temporarily freezes the application.

Short STW pauses are unavoidable in most GC designs — even collectors like ZGC and Shenandoah, which do most of their work concurrently, still require brief STW phases for certain operations. The practical impact on applications ranges from imperceptible (pauses of a few milliseconds) to very serious (pauses of several seconds in poorly configured or overloaded systems).

STW pauses are closely related to tail latency: even if 99% of requests complete quickly, a long GC pause at an inopportune moment can push the worst-case response time far above the acceptable threshold. This is why low-pause collectors exist and why careful GC configuration matters for latency-sensitive applications.

Comments (0)

Your email address will not be published. Required fields are marked *

Highlight your code snippets using [code lang="language name"] shortcode. Just insert your code between opening and closing tag: [code lang="java"] code [/code]. Or specify another language.

Save my name, email, and website in this browser for the next time I comment.

Comments (0)

Highlight your code snippets using [code lang="language name"] shortcode. Just insert your code between opening and closing tag: [code lang="java"] code [/code]. Or specify another language.

No comments yet. Be the first.

Subscribe to foojay updates:

https://foojay.io/feed/
Copied to the clipboard