Who’s Still on Java 8? What the Data Says About Upgrades, and What Staying Costs

java & the jvm · ~14 min read

Java 8 is twelve years old, and a large slice of production Java still runs on it. Meanwhile free updates for some newer versions have quietly ended, and the newest long-term release fixes performance problems many teams have simply learned to live with. We asked Share & Socket editor Mats Lindqvist what the data says about who’s still on which version, what staying put really costs — and we ran our own benchmark of the feature that makes upgrading worth it for I/O-heavy code.

INTERVIEW WITH MATS LINDQVIST · NOVEMBER 2026 · INCLUDES OUR OWN JAVA 21 BENCHMARK

28.8%

of monitored Java applications still ran Java 8 in New Relic’s 2024 data

18%

of Java users had adopted JDK 25 in Azul’s 2026 survey

Oct 2026

Oracle JDK 21 updates moved off the free-for-all licence

4×

faster: virtual threads vs a 200-thread pool in our I/O test

part one · the data

Who’s running what.

Q01

Let’s start with the headline question. How many teams are still on Java 8?

More than most people expect. The best production-level picture comes from New Relic, which looks at the Java versions reported by hundreds of thousands of applications it monitors. In its 2024 data, Java 17 had just overtaken the older versions at 35% of applications, Java 11 sat at 32.9% — and Java 8 was still at 28.8%. Java 21, then only six months old, was at 1.4%.

Survey data tells a similar story from a different angle. Azul’s 2023 State of Java survey of more than 2,000 Java professionals found 48% using Java 11, 45% using Java 17 and 40% still using Java 8 somewhere — respondents could pick several, because most organisations run more than one version. And Azul’s 2026 edition found 18% had already adopted JDK 25, the newest long-term release.

Read those numbers carefully, because they measure different things. New Relic counts running applications; Azul asks people which versions they use anywhere in their organisation. Put together, the picture is consistent: most organisations run a spread of versions at once, and the oldest one is usually attached to something important that nobody wants to touch.

Java versions in production applications, 2024

Share of applications reporting to New Relic

Java 17
35.0%
Java 11
32.9%
Java 8
28.8%
Java 21 (first 6 months)
1.4%

Source: New Relic Java ecosystem data, 2024. New Relic notes this reflects its own customers, not all Java in use. Bars scaled to the largest value.

Q02

Why would anyone still be on a version that old?

Almost never because they like it. Java 8 sticks because the jump to anything newer isn’t one step, it’s several breaking changes stacked together. Java 11 removed the old Java EE modules that a lot of enterprise code quietly depended on — XML binding, web services. Later versions locked down internal APIs that older frameworks reached into. And the wider ecosystem renamed its enterprise packages from javax to jakarta, which ripples through every library that touches them.

Then there’s the stuff nobody owns. The file-transfer job written in 2014, using a library that hasn’t had a release since 2017, that only speaks old SMB dialects. It works, nobody wants to touch it, and it pins the whole application to Java 8. In my experience, it’s rarely the business code that blocks an upgrade. It’s one forgotten dependency.

“Teams don’t stay on Java 8 because of Java. They stay because of the one library nobody’s brave enough to replace.”MATS LINDQVIST

part two · the deadlines

The calendar has moved, even if you haven’t.

Q03

What does the support calendar actually look like?

The reference most teams use is Oracle’s Java SE support roadmap. Other OpenJDK distributors publish their own timelines, but Oracle’s dates are the anchor. Here are the long-term releases.

Oracle support windows for Java LTS releases

Premier support, then extended support. Red line: November 2026.

Java 8
Java 11
Java 17
Java 21
Java 25
201420182022202620302034
Premier supportExtended support (paid)Today
Oracle Java SE long-term releases and their support dates
ReleaseReleasedPremier support untilExtended support untilFree Oracle JDK updates
Java 8Mar 2014Mar 2022Dec 2030No (commercial)
Java 11Sep 2018Sep 2023Jan 2032No (commercial)
Java 17Sep 2021Sep 2026*Sep 2029*Ended Oct 2024
Java 21Sep 2023Sep 2028*Sep 2031*Ended Oct 2026
Java 25Sep 2025Sep 2030*Sep 2033*Yes, until Sep 2028

Source: Oracle Java SE Support Roadmap. *Oracle lists these as “or later”. “Free” refers to Oracle JDK under its no-fee licence for all users; later updates move to a licence that is free only for personal and development use. OpenJDK builds from other providers follow their own schedules.

Q04

What’s the change most teams have missed?

The one that happened last month. Oracle’s free licence for Oracle JDK covers each long-term release for a limited period. For Java 17 that period ended in October 2024. For Java 21, Oracle JDK releases from October 2026 onwards moved to a licence that’s free only for personal and development use. So a team that moved to Oracle JDK 21 precisely to stay on a free, current version is now, in production, in the same position Java 8 users have been in for years: pay, switch distribution, or upgrade again.

This is why Azul’s 2026 survey found 92% of respondents concerned about Oracle Java pricing and 81% migrating, or planning to migrate, at least part of their estate to other OpenJDK distributions. I’m not going to tell you which distribution to use. But “which JDK build are we actually running, and under what licence?” is now a question every team should be able to answer in one line.

part three · what upgrading buys

The feature that changes I/O code.

Q05

Leaving licences aside — what’s the technical reason to upgrade?

For the kind of code this site cares about — code that waits on networks and file shares — it’s virtual threads. They were finalised in Java 21 through JEP 444, and they let you write simple, blocking code that waits on thousands of slow operations at once without needing thousands of expensive operating-system threads.

The old way to read 10,000 files from a slow share is a thread pool. Pick a size: too small and you wait in a queue, too large and you burn memory and scheduler time. Virtual threads mostly make that decision go away. We wanted a number rather than a promise, so we measured it.

Q06

What did you test, exactly?

A deliberately simple simulation of a file-share crawler. Ten thousand tasks, each waiting 20 milliseconds — a realistic round trip to a remote share — and then reading a 64 KB file. We ran it with fixed thread pools of 50, 200 and 1,000 threads, and with one virtual thread per task, on OpenJDK 21 on a 2-vCPU cloud machine. Three runs each; we report the median.

It isn’t a real SMB benchmark — a real share adds bandwidth limits, server-side throttling and the cost of the protocol itself. What it isolates is the part your code controls: how efficiently you wait. And waiting is most of what file-share code does.

Time to complete 10,000 simulated share reads

Milliseconds, median of three runs, OpenJDK 21, 2 vCPU (lower is better)

Fixed pool, 50 threads
4,076 ms
Fixed pool, 200 threads
1,041 ms
Fixed pool, 1,000 threads
481 ms
Virtual threads
260 ms

Share & Socket benchmark, November 2026. Each task: 20 ms simulated network wait plus a 64 KB local file read.

Benchmark results in throughput terms
ApproachMedian timeTasks per secondvs 200-thread pool
Fixed pool, 50 threads4,076 ms~2,4503.9× slower
Fixed pool, 200 threads1,041 ms~9,600baseline
Fixed pool, 1,000 threads481 ms~20,8002.2× faster
Virtual threads260 ms~38,5004.0× faster

Our calculation from the benchmark above. A real share adds bandwidth limits and server-side throttling; treat these as relative, not absolute, numbers.

Q07

Couldn’t you just use a bigger thread pool?

You can, and the 1,000-thread pool shows it helps. But it still came in nearly twice as slow as virtual threads in our test, and its run-to-run times varied far more — from about 360 to 710 milliseconds. Every platform thread also reserves its own stack memory and has to be scheduled by the operating system. Push the pool to 10,000 to match the work and you’re asking the OS to juggle 10,000 real threads on two CPUs.

The bigger win is simplicity. With virtual threads you stop tuning pool sizes for each environment. The code reads top to bottom: open the file, read it, handle the error. That’s easier to review and much easier to debug at 3 a.m.

Q08

Any catches?

One important one, and it’s an argument for going past Java 21. In Java 21, a virtual thread that blocks inside a synchronized block gets “pinned” to its carrier thread, which quietly removes the benefit. Plenty of older libraries — including many I/O and networking libraries — use synchronized heavily. Java 24 largely removed that limitation, so it’s fixed in Java 25, the current long-term release. If you’re upgrading anyway and your code is I/O-heavy, that’s a strong reason to aim for 25 rather than stop at 21.

“Java 21 introduced virtual threads. Java 25 is where they stop being surprised by your old libraries.”MATS LINDQVIST

part four · the decision

What staying actually costs.

Q09

How should a team weigh upgrading against staying put?

Look at four costs, not one. Licence or support fees are the obvious line. Security is the second: Azul’s 2026 survey found 56% of respondents dealing with Java-related vulnerabilities every week, and older versions get fewer free fixes. Cloud spend is the third: 43% said Java workloads make up more than half their cloud compute bill, and newer JVMs are generally more efficient with memory and CPU. The fourth is the hardest to price — the people who still know how the old stack works will not be there forever.

Q10

Does the Java version really change the cloud bill?

More than people assume, mostly through memory. Older JVMs were designed for long-lived servers with plenty of RAM and were clumsy inside containers; they could misjudge how much memory and CPU they were allowed and either waste it or get killed for exceeding it. Newer releases understand container limits properly and ship garbage collectors that return unused memory and keep pauses short on large heaps.

That matters because Azul’s 2026 survey found 74% of respondents saying more than a fifth of their cloud compute sits unused. Some of that is over-provisioning to give an old JVM headroom it no longer needs. I wouldn’t promise a specific saving — it depends entirely on the workload — but measuring memory and CPU before and after an upgrade, and then right-sizing the containers, is one of the few upgrade benefits a finance team will actually notice.

The upgrade path, hop by hop
HopTypical blockersEffort (our view)What you gain
8 → 11Removed Java EE modules, old build plugins, reflective access warningsHighModern GC options, HTTP client, supported runtime
11 → 17Strong encapsulation of JDK internals; older frameworksMediumRecords, text blocks, better GC and container awareness
17 → 21Mostly dependency version bumpsLowVirtual threads, generational ZGC
21 → 25Mostly dependency version bumpsLowVirtual threads without most pinning; longest support runway

Effort ratings are Share & Socket’s view from typical enterprise codebases. Most of the pain is in the first two hops; after Java 17, upgrades are mostly routine.

Q11

If you’re on Java 8 today, where should you aim?

Straight for the newest long-term release, with stops for testing on the way. Build and run your tests on 11 and 17 to flush out the breaking changes one layer at a time, but don’t ship and support those intermediate versions. Ship on 25. Every hop you deploy to production is another upgrade project you’ll have to run again in a few years.

And start with an inventory, not the code. List every Java application, the exact JDK build and licence it runs, and its oldest dependency. In my experience, that list alone changes the conversation — because it usually shows the problem is three or four libraries, not the whole estate.

  1. Inventory every app’s JDK version, distribution and licence.
  2. Find the anchor: the oldest dependency blocking each app.
  3. Test through 11 and 17; ship on 25.
  4. Adopt virtual threads in I/O-heavy code once you’re on 25.
  5. Measure CPU, memory and cloud cost before and after.

faq

Quick answers.

How many applications still use Java 8?

In New Relic’s 2024 data, 28.8% of monitored applications ran Java 8, behind Java 17 (35%) and Java 11 (32.9%).

When does Java 8 support end?

Oracle lists extended support for Java 8 until December 2030. Premier support ended in March 2022. Other OpenJDK providers set their own dates.

Is Oracle JDK 21 still free?

Oracle JDK 21 releases from October 2026 onwards are under a licence that is free only for personal and development use. Oracle JDK 25 is currently free for all users until September 2028.

What are virtual threads?

Lightweight threads, finalised in Java 21 through JEP 444, that let a JVM run very large numbers of blocking tasks without a matching number of operating-system threads.

How much faster are virtual threads?

In our test of 10,000 simulated file-share reads, virtual threads finished four times faster than a 200-thread pool and almost twice as fast as a 1,000-thread pool.

Should I upgrade to Java 21 or Java 25?

For I/O-heavy code, Java 25. It removes most of the pinning problem that limits virtual threads in Java 21 when libraries use synchronized blocks, and it has the longest support runway.

Can I upgrade straight from Java 8 to Java 25?

Yes, and it’s often the best plan. Test through 11 and 17 to isolate breaking changes, but deploy only the final version.

Why are companies moving away from Oracle Java?

Mainly cost. In Azul’s 2026 survey, 92% were concerned about Oracle Java pricing and 81% were migrating or planning to migrate at least part of their estate to other OpenJDK distributions.

Sources: Oracle Java SE Support Roadmap; OpenJDK JEP 444; New Relic Java ecosystem data (2024); Azul State of Java surveys (2023 and 2026, each with more than 2,000 respondents). Benchmark figures are Share & Socket’s own measurements on OpenJDK 21 and are illustrative. Effort ratings are our view. Nothing here is licensing advice; check your agreements and current vendor terms.

Contact Us

We'd love to hear from you