Java 21 overtakes Java 17, and services that upgrade are faster and better patched
Java 21 is now the most widely used version in production environments, accounting for 40% of services, ahead of Java 17 at 31%. Notably, Java 25 has already reached 9% since its September 2025 release, while Java 8 and Java 11 together still account for 16% despite their age.

OpenJDK releases new Java versions every six months, but organizations rarely have the time to upgrade their services at the same cadence. Rather, they tend to wait to upgrade to releases that receive Long-Term Support (LTS)—versions 8, 11, 17, 21, and 25—which account for 96% of all production services. These releases continue to receive security and performance fixes for years, as seen in Oracle’s commitment to support JDK 8 through at least 2030, and they typically introduce major features. For example, services upgrading to Java 21 gain access to virtual threads, which let the thread-per-request model most Java servers are built on scale without a reactive rewrite.
Our data suggests that upgrading to a new LTS release can contribute to substantial latency improvements. Median p99 request latency falls with each new generation through Java 21:
- Java 8: 230 ms
- Java 11: 145 ms
- Java 17: 83 ms
- Java 21: 64 ms
That is a nearly fourfold improvement in tail latency between Java 8 and Java 21. While some of these gains may result from newer, lighter frameworks available to services on newer Java releases, the general pattern persists even when we hold frameworks constant. Among Spring services, including both Boot and non-Boot, median p99 falls from 333 ms on Java 8 to 61 ms on Java 21, with comparable request rates across versions. This suggests that new generations of Java may alone bring significant internal JVM performance improvements, even before any code changes are applied.
Services on newer releases are also better patched. About 90% of Java 25 services are current or one patch release behind, and the median Java 21 service is two behind. That distance widens with age: The median Java 17 service is five patches behind, and the median Java 11 service is 10 behind. While 20% of Java 8 services are up to date, an even larger proportion are more than ten patches behind.

Long LTS support life cycles mean that running an older Java version isn’t a security problem in itself. However, falling behind on patches is. Java releases quarterly patches, so the median Java 11 service is about 2.5 years out of date. Unlike a version upgrade, patching your service requires no code changes, which makes this lag harder to justify. Failure to keep your service up-to-date also leaves it exposed to publicly documented vulnerabilities and past the remediation windows most compliance frameworks require.
Two vendors supply most JDKs, but nearly every service runs the same JVM
Java is a specification, not a single implementation, and many vendors distribute their own builds that are packaged as a JDK. Choosing between different vendor distributions determines a release’s support life cycle, licensing, supported platforms, and bundled features. It also determines which JVM executes the bytecode, and therefore how the runtime collects garbage, compiles hot code, and consumes memory.
Vendor choice is not consolidated around one option. Eclipse Temurin and Amazon Corretto lead at 35% and 33% of services respectively, with Oracle, Red Hat, and Azul Zulu holding smaller but still substantial shares.
Despite the significance of the selection, choosing a vendor is rarely a JVM implementation decision. Nearly every mainstream distribution uses HotSpot as its JVM, which runs over 98% of all Java services in Datadog customer environments. When a team runs an alternative to HotSpot, it’s usually chosen for another reason. For example, OpenJ9 better supports IBM-lineage platforms, while GraalVM Native Image compiles applications ahead of time to eliminate the JVM startup that makes serverless cold starts costly.

The dominance of the leading vendors is not solely a result of consumer preference but also of inheritance. AWS hosts over 60% of Java services, and 41% of them run Corretto, which is the default runtime for AWS’s managed Java platforms and the default JDK installed by Amazon Linux. In contrast, only 9% of Google Cloud–hosted and 11% of Azure-hosted services run Corretto. Following the same pattern, Microsoft ships its own build of OpenJDK, which accounts for 6% of Azure-hosted services but 0.5% of services overall. Frameworks exhibit a similar trend: 34% of services built on Quarkus, a framework led by Red Hat, run a Red Hat build, against 7% of services overall.


AI adoption in Java has tripled since early 2025
Adoption of AI and ML libraries has climbed steadily across programming languages, and Java is no exception. As of October 2026, 14.1% of Java services declare at least one AI or ML dependency, up from 4.6% in January 2025. In relative terms, it is growing faster than other ecosystems. However, it still trails in absolute adoption, a gap that has widened from 3.7 percentage points to 6.7 percentage points over the same period.
Part of this gap is structural. Model training and data science have traditionally belonged to Python’s ecosystem. The Java AI libraries seeing adoption are integration frameworks, such as Spring AI and LangChain4j, rather than training tools. They exist to call models, retrieve context, and orchestrate tools rather than to build models.

Even so, we expect to see adoption of AI libraries in Java rise as frameworks add built-in support. Spring AI reached 2.0 in June 2026, following its first production release in 2025, giving Spring Boot applications supported abstractions over model providers, vector stores, retrieval, and tool calling rather than hand-rolled HTTP clients. LangChain4j serves the same role outside Spring and is the standard path in Quarkus. Both now ship Model Context Protocol support, connecting models to an application’s own tools and data.
One constraint on how quickly these new features translate into adoption is minimum version requirements. Spring AI 2.0 requires Spring Boot 4 and Spring Framework 7, so teams running earlier versions will need to upgrade to use these features.
Java services are now largely containerized
For most of its history, production Java was tied to application servers such as WebLogic and GlassFish that hosted many applications side by side on a large VM or bare metal server. Database connections, queues, and other components were configured in these servers rather than in the application. This created a Java-specific platform layer that teams would vertically scale as the traffic and number of hosted applications grew.
Our data shows that this is no longer the case. Nearly four out of five Java services are now deployed in containers. Once the predominant Java deployment method, VMs now only account for 8% of services, while serverless deployments (which include serverless container orchestrators such as AWS Fargate) make up the remaining 14%.

The shift to container deployments inverts nearly every property of historical VM deployments. Each container runs its own application with its configuration packaged alongside the code. Instances are replaceable rather than long-lived, and capacity is added by increasing the replica count rather than growing a single instance. What teams carry over is the application itself—the language, the libraries, and in most cases the frameworks. However, those decisions are more fixed than they might appear, and we will discuss these related contingencies later in Fact 7.
Container size largely shapes garbage collector adoption
Java garbage collectors automate memory management, reclaiming heap space from objects a service no longer uses. Every JVM ships with several garbage collectors, each making different tradeoffs between throughput, pause time, and CPU overhead.
The easiest performance win often isn’t to upgrade JDKs or switch frameworks. It’s to switch from the default GC to a collector better suited to your workloads. However, we found that 69% of Java services never make that choice and run the default collector.
Java enables you to designate which GC the JVM uses with a startup flag; however, if no flag is set, the JVM will automatically select a GC based on your container ergonomics. For server-class machines (those with two or more processors and 2 GB or more of memory), HotSpot defaults to Parallel GC on Java 8 and to G1 for newer versions of Java. For smaller containers, it defaults to Serial GC.

Notably, 28% of Java services still inherit Serial by default. While Serial does provide real advantages for short-lived JVMs and batch work, its inability to do work in parallel can result in idle resources and longer pauses. To overcome these restrictions, we see users explicitly selecting G1—which offers parallel collection and a configurable pause-time target—in 24% of services.
Stop-the-world pauses, the time that a GC spends freeing memory while your service is frozen, are one of the most visible effects of Java garbage collection. They can contribute significantly to your service’s tail latency, and in most GCs, the pause scales as heap size increases. To address this issue, low-pause collectors such as ZGC and Shenandoah move objects in memory while the application runs, pausing only to scan thread stacks for references. This applies a heavier tax on throughput and CPU overhead, but the result is a significantly shorter stop-the-world pause time compared to their alternatives.
While the p95 pause times for G1, Serial, and Parallel GC are measured in hundreds of milliseconds, Shenandoah and ZGC recorded a p95 pause time of 11 milliseconds and a fraction of a millisecond respectively. Despite this large difference in pause time, low-pause collectors only account for 2% of GC usage.

Most Java services handle very few requests
How much traffic does the typical Java service handle? As it turns out, very little. Even when measured during each service’s daily peak hour, 52% of Java web services handle fewer than one request per second. High-throughput Java services exist, but they account for a small fraction of services overall: Only 7% of services handle over 100 requests per second.

This throughput trend was the most apparent among services with smaller resource allocations. But surprisingly, it persisted even at higher tiers of CPU allocation: 38% of services with a limit of 32 cores or more handle fewer than one request per second, against 65% of services limited to a single core. These request rates describe aggregate service traffic, not resource utilisation, and do not by themselves indicate whether a service’s CPU or memory allocation is excessive.
At the same time, the JVM has grown steadily less resource-hungry, and newer versions of Java run faster than their predecessors. Despite these performance improvements, the above data suggests that sizing practices have yet to catch up.
Spring is the dominant framework, but adoption is diverse
Java frameworks provide pre-written code for common service functions such as starting an HTTP server, routing requests, and wiring dependencies. The framework a team selects shapes how the service is written, how it handles concurrency, and how it is packaged for deployment.
Spring dominates, accounting for 78% of Java services across its Boot and non-Boot variants. Boot embeds a server in the application, so the packaged application runs on its own, mapping cleanly onto a container image. Non-Boot applications, which predate Boot, often use a separately installed server, and they remain concentrated on VMs: 27% of VM-deployed services run non-Boot Spring, against 4% of containerized ones.

Quarkus is far less common, but the services running it are busier. Our data shows that 53% of Quarkus services handle over 100,000 daily requests, against 38% of Spring services.

Teams may be choosing alternative frameworks in search of performance and efficiency gains. We found that Spring services spend a median of 1.45% of their CPU inside Spring’s own code, rising to 9.14% at the 95th percentile. Meanwhile, Quarkus services spend 0.32% at the median and 1.75% at p95. Quarkus performs as much work as possible at build time rather than at runtime, so less framework code runs on each request. For services that handle high daily traffic volumes, this difference can create significant efficiency gains.
An important distinction is that unlike the JDK version or the garbage collector, a framework can’t be changed with a flag or a new base image because the application is written around it. Switching frameworks represents a significant engineering effort, and for most services, the cost may not be worth the payoff.
Java dependencies cluster into familiar technology stacks
Frameworks represent only a small portion of the dozens of libraries and dependencies that Java services rely on. To help readers gain a more comprehensive view of how Java services select their dependencies, we used Datadog Software Composition Analysis to measure how often two libraries appeared together. We counted only direct dependencies—the ones a team declares explicitly rather than the ones pulled in indirectly by other dependencies. We found several distinct groupings of different dependencies, each revolving around a core decision relating to a cloud provider, framework, or workload pattern.
Most Java libraries run identically on any cloud provider platform, so there is no technical reason that any particular libraries and providers should be connected. But our data shows that decisions about these components are in fact correlated. You can explore different cloud provider SDKs and their strongest library affinities in the interactive visualization below. Inspecting a library shows its prevalence among Java services and the libraries that it most frequently appears alongside. Library affinities are measured by both the occurrence rate of each linked pair and also normalized pointwise mutual information (NPMI), a statistic that accounts for the chance that the pairing naturally occurs.
Java Library Affinity
Bubble size shows adoption. Each bubble is a directly declared Java library. Select a bubble to reveal its immediate affinity neighborhood, or continue through three very different cloud dependency fingerprints.
Note: Data reflects June 2026.
Source: Datadog
Finally, our data also showed that, when teams decide on application dependencies, they tend to stick with them. We found that 23% of Java services still declare Joda-Time as a direct dependency, despite more than a decade of its maintainers urging users to migrate to java.time, the core Java API that replaced it. (If your team owns one of these services, we suggest migrating.)
Looking ahead
Java services have modernized unevenly. Services are now overwhelmingly containerized, and LTS generations are measurably faster than their predecessors. The opportunities available to teams differ in cost accordingly. Confirming that a service isn’t running a collector selected based on its deployment size takes only a startup flag and a restart. On the other hand, changing frameworks requires changing application code, which makes the decision better suited to new services than existing ones.
Looking ahead, we expect to see a large uptick in Java 25 adoption, which will by then have been the current LTS for over a year. We also expect G1 adoption to rise even further, as teams test the collector ahead of it becoming the universal default for new Java releases regardless of deployment size. We expect AI library adoption to keep climbing as well, though Spring AI 2.0’s requirement of Spring Boot 4 may determine how quickly its newest capabilities reach production. And we’ll be watching virtual threads, whose adoption was too small to report this year but should grow as JDK 21 and later become the clear majority deployed in production.
