State of Java | Datadog
State of Java

/ / /

Three decades after its release, Java remains one of the foundations of production software. It is the most widely used programming language in Datadog-monitored services and ranks among the most common worldwide. Despite this prevalence, Java trails many other languages in key measures of developer sentiment. Stack Overflow’s 2025 Developer survey found that fewer respondents want to adopt Java than other widely used languages like Python, Go, and Rust.

Java is often judged by limitations associated with its past, including heavyweight deployments, long garbage-collection pauses, and slow-moving enterprise stacks. Across the production services we examined, these characterizations are largely at odds with how Java runs today.

Drawing on profiling data from hundreds of thousands of production Java services, we found a platform that is modernizing without abandoning its established foundation. Newer runtimes and garbage collectors (GCs) offer measurable performance gains, even as older Java development kits (JDKs) and long-standing dependencies remain widespread. The newest instance is AI, where we observed a large increase over the past year in the number of Java services that declared AI and ML libraries.

In this report, we explore how organizations choose JDK versions, distributions, Java Virtual Machine (JVM) implementations, libraries, and AI frameworks. We also investigate how deployment ergonomics shape garbage collector adoption among production services and where container provisioning leaves potential performance gains on the table for Java workloads.


주요 정보 1

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.

Bar chart titled Breakdown of Java versions by adoption rate. Java 21 is used by 40% of services, Java 17 by 31%, Java 11 by 9%, Java 25 by 9%, and Java 8 by 7%. Above the chart, a headline reads Java 21 is the most popular runtime used in production.

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.

Dot chart titled Median patch releases behind the latest update, by Java version. The median Java 25 service is on the latest release, Java 21 is 2 releases behind, Java 17 is 5 behind, Java 8 is 8 behind, and Java 11 is 10 behind. Above the chart, a headline reads Services using newer Java versions are better patched.

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.

주요 정보 2

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.

Two area charts. JVM implementation: HotSpot runs 98.5% of Java services and other JVMs 1.5%. JDK distribution: Temurin/Adoptium 35%, Amazon Corretto 33%, OpenJDK 9%, Red Hat 7%, Azul Zulu 6%, Oracle 6%, BellSoft 2%, GraalVM 1%, and other 1%. Above the charts, a headline reads HotSpot dominates JVM implementation while Java vendor distributions vary.

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.

Area chart titled Breakdown of cloud providers hosting Java services. AWS hosts 64% of Java services, Google Cloud 13%, Azure 7%, and other providers 16%. Above the chart, a headline reads Over 60% of Java services run on AWS.
Stacked bar chart titled Breakdown of JDK vendors by cloud provider. On AWS, Amazon Corretto runs 41% of Java services, Eclipse Temurin/Adoptium 25%, Azul Zulu 12%, Red Hat 7%, Oracle 4%, and other vendors 11%. Corretto runs 11% of services on Azure and 9% on Google Cloud, where Temurin leads at 36% and 56%. Above the chart, a headline reads Amazon Corretto is far more common on AWS than on other clouds.
주요 정보 3

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.

Line chart titled Adoption of AI and ML dependencies in production services, from January 2025 to October 2026. Java rises from 4.6% to 14.1% of services, while other languages rise from 8.3% to 20.8%. Above the chart, a headline reads AI adoption in Java is rising steadily but trails other languages.

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.

주요 정보 4

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

Donut chart titled Breakdown of Java deployment types. Containers account for 78% of Java services, serverless for 14%, and VMs for 8%. Above the chart, a headline reads Roughly four out of five Java services are containerized.

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.

주요 정보 5

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.

Sankey diagram titled Garbage collector adoption: default vs. explicit selection. 69% of services use a default collector and 31% select one explicitly. G1 runs 64% of services (40% by default, 24% explicitly), Serial GC 29% (28% by default), Parallel GC 5% (2% by default), ZGC 2%, and Shenandoah under 1%. Above the chart, a headline reads 69% of services select a garbage collector automatically based on container size.

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.

Bar chart titled Stop-the-world pause times by garbage collector (GC) at the 95th percentile, in milliseconds. ZGC pauses for under 1 ms, Shenandoah for 11 ms, G1 GC for 191 ms, Serial GC for 322 ms, and Parallel GC for 744 ms. Above the chart, a headline reads ZGC and Shenandoah pause for milliseconds where other collectors pause for hundreds.
주요 정보 6

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.

Histogram titled Distribution of Java services by request rate. 52% of Java services handle less than one request per second; the most common band is 0.3 to 1 request per second at 22%, and only 7% of services handle 100 or more requests per second. Above the chart, a headline reads Most Java services handle less than one request 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.

주요 정보 7

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.

Stacked bar chart titled Breakdown of Java services by framework. Spring Boot accounts for 71% of services, Spring (non-Boot) 7%, Jakarta (Servlet only) 6%, Quarkus 1%, JBoss WildFly 1%, Micronaut 1%, and other frameworks 13%. Above the chart, a headline reads Spring Boot accounts for over 70% of identified framework usage.

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.

Two histograms titled Distribution of Java services by daily request volume, Spring vs. Quarkus. 38% of Spring services handle 100,000 or more daily requests, compared with 53% of Quarkus services. Above the charts, a headline reads Quarkus skews toward higher daily request volumes.

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.

주요 정보 8

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.

    Java library affinity graph A reactive network of commonly co-occurring Java libraries, with a walkthrough comparing AWS, Google Cloud, and Azure dependency patterns.

    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.

    Find the right garbage collector for your Java workloads.

    방법

    Unless otherwise noted, findings are based on anonymized data collected from Java services on June 15, 2026.

    General

    • We included only organizations eligible for research use on the capture date.
    • We analyzed data at the service level, identifying each service by its organization and service name.
    • Services that produced multiple profiles were combined into a single service-level observation.
    • Comparisons between JDK versions, frameworks, garbage collectors, and deployment configurations are considered observational. They show associations but do not prove that any one factor caused the measured difference.

    Data sources

    Continuous Profiler and Java Flight Recorder (JFR)

    • We sampled Java profiles from all Datadog regions, limiting the number of profiles selected per service so that highly active services did not dominate the dataset.
    • We parsed each JFR recording with a dedicated extraction pipeline. We retained only recordings that were parsed successfully. From these recordings, we extracted a variety of information via an analytics pipeline, including:
      • JVM name, version, vendor, arguments, and selected system properties
      • Garbage collector and heap configuration
      • CPU topology and container CPU and memory limits visible to the JVM
      • CPU execution samples, allocation samples, garbage collection events, and thread statistics
      • Java packages observed in sampled stack traces
      • Container, orchestration, serverless, and cloud metadata

    Software Composition Analysis (SCA)

    • We used Datadog SCA to inventory the Maven dependencies of profiled Java services.
    • We distinguished dependencies declared directly by an application from dependencies included transitively. Unless otherwise noted, the numerical findings discussed in this report use only direct dependencies.
    • The presence of a dependency indicates that it was included in the application, but this does not necessarily mean its code was executed during the observation period.

    APM

    • APM trace metrics for profiled services were taken at a five-minute resolution during the snapshot day.
    • For each service, we selected its highest-volume inbound server operation. These operations included servlet, Netty, Undertow, gRPC server, Akka or Pekko HTTP, and generic HTTP server operations.
    • We joined APM, profiling, and SCA data using the organization and service name.

    Fact 1

    Java versions, latency, and patch adoption

    • We derived the major version from java.vm.specification.version, with the runtime version string used as a fallback when necessary.
    • We measured patch currency by comparing each service’s patch version with the latest mainstream version on the date that our data was collected.
    • For latency comparisons, we excluded services observed on more than one major Java version because APM metrics could not reliably attribute their traffic to a particular version.
    • We calculated each service’s p99 request latency from its primary inbound APM operation.

    Fact 2

    JDK distributions and VM implementations

    • We classified JDK distributions using java.vm.vendor and related runtime version strings.
    • Some builds identify themselves only as OpenJDK. We classified these as unattributed OpenJDK builds rather than treating OpenJDK as a vendor equivalent to Amazon, Eclipse, Oracle, Red Hat, or Azul.
    • We classified VM implementations, including HotSpot and OpenJ9, by using the JVM name reported in each recording.
    • We identified GraalVM Native Image services by using native image system properties and the Substrate VM identifier.
    • We attributed cloud providers by using infrastructure metadata associated with each service.
    • Framework-specific vendor comparisons used the framework classification described under Fact 7.

    Fact 3

    AI and ML library adoption

    • We analyzed APM instrumentation data for services running in production environments
    • To create the timeseries graph, we collected data at a monthly cadence beginning in January 2025 and ending in October 2026.
    • Other languages discussed in this fact include C++, .NET, Go, Node.js, PHP, Python, and Ruby.
    • Services were defined as using an AI or ML library if they were instrumented with at least one of the following dependencies:
      • Dependencies exclusive to Java that we considered include Apache OpenNLP, Deep Java Library (DJL), Deeplearning4j / ND4J, Jlama, JSAT, LangChain4j, MOA, Smile, Spring AI, Stanford CoreNLP, TensorFlow Java, and Tribuo.
      • Dependencies exclusive to other programming languages outside of Java include: AgentFlow, Atomic Agents, Botpress, CAMEL-AI, Chainlit, CrewAI, Flowise, Griptape, Haystack, Langflow, Letta, Lindy, Mastra, MetaGPT, Microsoft AutoGen, OpenAI Agents, OpenHands, Prompt flow, Pydantic AI, Rasa, smolagents, Strands Agents, SuperAGI, and Vercel AI SDK.
      • Dependencies shared by Java and other programming languages include AgentScope, AWS Bedrock Agent, Guidance, Instructor, LangChain, LangGraph, LlamaIndex, Marvin, Microsoft Semantic Kernel, and n8n.

    Fact 4

    Deployment models

    • We classified services as containerized, serverless, or VM-based by using serverless, container, orchestration, and host metadata.
    • Serverless metadata took precedence over general container metadata. The serverless category includes managed container platforms such as AWS Fargate.
    • Services with container or orchestration metadata and no serverless classification were classified as containerized.
    • Services with host metadata but no container or serverless classification were classified as VM-based.
    • Each service contributed once to the deployment distribution, regardless of its number of instances or profiles.

    Fact 5

    Garbage collector selection and pause duration

    • We identified each service’s garbage collector from the young- and old-generation collectors reported by the JVM.
    • We classified collector selection as explicit when JVM arguments contained a matching collector-selection flag. Services without such a flag were classified as using an automatically selected collector.
    • Stop-the-world pause measurements use the durations of individual garbage collection events recorded in JFR.

    Fact 6

    Request volume and container provisioning

    • We calculated each service’s request volume from its primary inbound APM operation.
    • A service’s peak request rate was calculated from its busiest hour during the snapshot day.
    • Container CPU and memory allocations are the effective limits visible to the JVM through cgroups. These figures represent provisioned limits, not observed CPU or memory utilization.
    • The JVM reports effective processor counts as whole numbers and may round up fractional CPU allocations.
    • CPU-tier comparisons include only services for which a container CPU limit was available.
    • Latency figures for low-throughput services use the p99 duration of each service’s primary inbound operation.

    Fact 7

    Framework usage and workload profiles

    • We identified frameworks from Java packages observed in each service’s profiling stack samples. Frameworks that did not appear in these samples were not included in our data.
    • Each service was classified with a single framework. Services with multiple frameworks observed in their profiling stacks were assigned their framework based on a fixed order of precedence.
    • Request volumes were measured using the total requests recorded for each service’s primary inbound APM operation during the snapshot day.
    • To calculate the CPU spent directly executing framework code, we measured sampled CPU self-time. These measurements included only services with at least 1,000 CPU samples.
    • To reduce the influence of a single organization, we excluded an organization from a framework comparison when it accounted for at least 20% of the eligible services in that framework cohort.

    Fact 8

    Dependency clusters and long-lived libraries

    • NPMI normalizes the association onto a scale from −1 to +1. A value of 0 indicates the rate expected under independence, while positive values indicate that the libraries appeared together more often than expected. Values closer to 1 indicate a stronger association after accounting for the overall prevalence of each library.
    • We analyzed SCA data to identify services with at least one recognized direct dependency. Only library families present in at least 1% of services were eligible, and each pair had to occur in at least 500 services.
    • We retained the 300 highest-scoring pairs by NPMI and excluded pairs with an NPMI score of 0 or below.
    • Library affinity describes statistical co-presence. It does not establish that one library depends on another, that either library was executed during the observation period, or that adopting one caused a team to adopt the other.

    Licensing

    Report: CC BY-ND 4.0

    Images: CC BY-ND 4.0