惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cyberwarzone
Cyberwarzone
V
Vulnerabilities – Threatpost
T
Tenable Blog
Forbes - Security
Forbes - Security
Simon Willison's Weblog
Simon Willison's Weblog
AWS News Blog
AWS News Blog
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
S
Securelist
C
Cybersecurity and Infrastructure Security Agency CISA
Project Zero
Project Zero
C
CXSECURITY Database RSS Feed - CXSecurity.com
V
Visual Studio Blog
WordPress大学
WordPress大学
Latest news
Latest news
K
Kaspersky official blog
T
Tailwind CSS Blog
T
Threat Research - Cisco Blogs
B
Blog RSS Feed
C
Cisco Blogs
博客园 - 聂微东
Martin Fowler
Martin Fowler
T
The Blog of Author Tim Ferriss
小众软件
小众软件
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 热门话题
Stack Overflow Blog
Stack Overflow Blog
罗磊的独立博客
P
Proofpoint News Feed
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
P
Privacy International News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
CERT Recently Published Vulnerability Notes
Cisco Talos Blog
Cisco Talos Blog
S
SegmentFault 最新的问题
Security Latest
Security Latest
Y
Y Combinator Blog
爱范儿
爱范儿
aimingoo的专栏
aimingoo的专栏
P
Privacy & Cybersecurity Law Blog
L
LINUX DO - 最新话题
月光博客
月光博客
The GitHub Blog
The GitHub Blog
博客园 - 三生石上(FineUI控件)
S
Security Affairs
P
Proofpoint News Feed
D
DataBreaches.Net
有赞技术团队
有赞技术团队
云风的 BLOG
云风的 BLOG

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Difference Between JVM, JRE, JDK, and GraalVM: 2026 Complete Guide
Andrew · 2026-05-16 · via DEV Community

If you’ve worked with Java or any JVM-based language (Kotlin, Scala, Groovy) in 2026, you’ve almost certainly encountered acronyms like JVM, JRE, JDK, and GraalVM. But mixing up these components isn’t just a beginner mistake: it can lead to 2x higher cloud bills, 10x slower serverless cold starts, and avoidable production outages. Even senior devs often miss the nuanced differences between modern JVM distributions and runtimes, especially after the flood of game-changing Java updates between 2024 and 2026. In this post, we’ll break down exactly what each component is, how they differ, and how to choose the right runtime for your use case in 2026.


Table of Contents

  1. The Core Nested Hierarchy: JVM vs JRE vs JDK
  2. Modern Standard JVM (OpenJDK 26) Capabilities in 2026
  3. Standard JVM vs GraalVM Native Image: Key 2026 Differences
  4. 2026 JVM Ecosystem Trends You Need to Know
  5. Best Practices for Choosing the Right JVM Runtime
  6. Common JVM Mistakes to Avoid in 2026
  7. Conclusion
  8. References

The Core Nested Hierarchy: JVM vs JRE vs JDK

All three components follow a strict nested hierarchy, with each outer layer containing the inner ones:

JDK (Development Kit)
└── JRE (Runtime Environment)
    └── JVM (Virtual Machine)

Enter fullscreen mode Exit fullscreen mode

What is the JVM?

The Java Virtual Machine (JVM) is the platform-agnostic execution engine that runs compiled Java bytecode. It is a specification with multiple production implementations (OpenJDK HotSpot, Eclipse OpenJ9, Azul Zing, etc.), with OpenJDK HotSpot being the de facto standard as of 2026.
Key responsibilities:

  • Executes bytecode compiled from JVM languages
  • Enables "write once, run anywhere" platform independence
  • Manages automatic memory allocation and garbage collection (GC)
  • Handles thread scheduling and runtime security checks

Practical example: When you run java -jar my-spring-boot-app.jar, the JVM is the OS process that spins up, loads the bytecode from the JAR, and executes your application logic.

What is the JRE?

The Java Runtime Environment (JRE) is a package that contains the JVM + core Java standard libraries (e.g. java.lang, java.util, java.net) + supporting runtime files. It includes everything you need to run pre-compiled JVM applications, but no tools for building or debugging code.
Use case: Install only the JRE on production servers that run pre-built Java apps to reduce attack surface and save disk space.

What is the JDK?

The Java Development Kit (JDK) is the full-featured developer package that contains the JRE + development tools. It includes everything you need to build, test, debug, and package JVM applications.
Key built-in tools:

  • javac: The Java compiler that converts source code (.java files) to bytecode (.class files)
  • jdb: The Java debugger
  • javadoc: The documentation generator
  • jpackage: The tool for packaging apps into native OS executables

Practical example: A simple Hello World workflow using the JDK and JRE:

// HelloWorld.java
public class HelloWorld {
  public static void main(String[] args) {
    System.out.println("Hello 2026 JVM!");
  }
}

Enter fullscreen mode Exit fullscreen mode

# Use javac (from JDK) to compile source code to bytecode
javac HelloWorld.java
# Use java command (from JRE) to run the bytecode on the JVM
java HelloWorld
# Output: Hello 2026 JVM!

Enter fullscreen mode Exit fullscreen mode


Modern Standard JVM (OpenJDK 26) Capabilities in 2026

The JVM has evolved drastically in the past 3 years, closing the performance gap with native languages like Go and Rust while retaining its famous backwards compatibility.

Project Leyden AOT Object Caching

Released in JDK 26, Project Leyden introduces persistent Ahead-of-Time (AOT) object caching that reduces cold start times for standard JVM apps to 50-200ms. This makes the standard JVM fully competitive with Go for serverless workloads, without requiring any native image compilation tradeoffs.

Compact Object Headers (Java 25 LTS)

Introduced in the 2025 Java 25 LTS release, compact object headers reduce the overhead of every object on the heap from 16 bytes to 8 bytes for most workloads, cutting overall heap usage by 10-20%. For enterprise teams running 1000+ Kubernetes pods, this translates to tens of thousands of dollars in annual cloud cost savings.

Virtual Threads (Project Loom)

Virtual threads moved to production stable in Java 21, and are now the default thread model for all modern enterprise frameworks (Spring Boot 4.0, Jakarta EE 11). They replace heavy OS threads with lightweight user-mode threads, enabling you to run 100,000+ concurrent requests on a handful of OS threads, bringing the simple "one request per thread" programming model back to dominance without the performance tradeoffs of reactive programming.
Example of virtual thread usage:

import java.util.concurrent.Executors;
import java.util.stream.IntStream;
import java.time.Duration;

// Handle 100,000 concurrent requests with <100MB of memory
try (var executor = Executors.newVirtualThreadPerTaskExecutor()) {
  IntStream.range(0, 100_000).forEach(i -> {
    executor.submit(() -> {
      Thread.sleep(Duration.ofSeconds(1)); // Simulate API call
      System.out.println("Processed request " + i);
      return i;
    });
  });
}

Enter fullscreen mode Exit fullscreen mode


Standard JVM vs GraalVM Native Image: Key 2026 Differences

GraalVM is an alternative JVM distribution developed by Oracle that includes a native image compiler to pre-compile Java bytecode to standalone native executables. The table below breaks down the key differences between standard OpenJDK 26 JVM and GraalVM Native Image in 2026:

Feature Standard OpenJDK 26 JVM GraalVM Native Image 23
Cold Start Time 50-200ms (with Leyden enabled) <100ms
Peak Throughput 15-20% higher than GraalVM (adaptive JIT optimizations) Lower than standard JVM
Memory Footprint Moderate (200-500MB for typical microservice) Very low (20-100MB for same microservice)
Dynamic Feature Support Full support for reflection, dynamic proxies, and class loading with zero configuration Requires explicit build-time hints (e.g. reflect-config.json) for dynamic features
Build Time Fast (10-30s for average Spring Boot app) Slow (2-10 minutes for average Spring Boot app)
Best Use Cases Long-running monoliths, microservices, batch processing, AI/ML workloads Serverless/FaaS, edge devices, CLI tools, short-lived jobs

Practical use case example:

  • If you run a 24/7 e-commerce monolith serving 100k requests per second, use the standard JVM to take advantage of adaptive JIT optimizations that tune performance to your real traffic patterns.
  • If you run an AWS Lambda function that processes S3 file uploads 100 times per day, use GraalVM Native Image to get sub-100ms cold starts and 70% lower Lambda costs.

2026 JVM Ecosystem Trends You Need to Know

Java 25 LTS is the New Enterprise Baseline

Java 25 LTS, released in 2025, is now the minimum supported version for all major enterprise frameworks including Spring Boot 4.0, Jakarta EE 11, Quarkus 3.15, and Micronaut 4.8. 90% of enterprise teams have migrated from Java 11/17 to Java 25 as of 2026 to take advantage of compact object headers, virtual threads, and improved security.

JVM for AI Workloads

The JVM is now a first-class runtime for AI and agentic workflow development, with native integration for LLMs via Spring AI and LangChain4j. Project Babylon (incubating in JDK 27) adds "Code Reflection" functionality that automatically translates Java code to optimized GPU kernels, eliminating the need to write custom CUDA code for LLM inference and model training.

Project Valhalla Value Classes (Incubation)

Project Valhalla, now in early access, introduces value classes: primitive-like objects that have no identity overhead. A value class holding two int fields uses just 8 bytes of memory, compared to 24+ bytes for a standard object. This will enable 2-5x performance improvements for high-performance computing and data processing workloads when it reaches stable release in 2027.

Native HTTP/3 Support

JDK 26 includes native HTTP/3 (QUIC/UDP) support in the built-in HttpClient API, enabling faster API calls for mobile and high-latency network environments with zero third-party dependencies:

import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

HttpClient http3Client = HttpClient.newBuilder()
  .version(HttpClient.Version.HTTP_3)
  .build();

HttpRequest request = HttpRequest.newBuilder()
  .uri(URI.create("https://api.llm-provider.example.com/v1/chat"))
  .POST(HttpRequest.BodyPublishers.ofString("{\"prompt\":\"Hello JVM!\"}"))
  .build();

HttpResponse<String> response = http3Client.send(request, HttpResponse.BodyHandlers.ofString());

Enter fullscreen mode Exit fullscreen mode


Best Practices for Choosing the Right JVM Runtime

  1. For long-running enterprise workloads: Use OpenJDK 25 LTS JDK for development, and OpenJDK 25 LTS JRE for production deployment. Enable virtual threads and compact object headers by default.
  2. For serverless workloads: First test standard OpenJDK 26 with Project Leyden enabled. If you need even faster cold starts or lower memory, switch to GraalVM Native Image.
  3. For edge/CLI tools: Use GraalVM Native Image to get the smallest possible footprint and fastest startup time.
  4. For AI/ML workloads: Use standard OpenJDK 26 with Project Babylon early access builds if you need GPU acceleration for LLM inference.
  5. Always use LTS releases for production: Non-LTS releases are only supported for 6 months, and introduce unnecessary risk for production workloads.

Common JVM Mistakes to Avoid in 2026

  1. Installing the JDK on production servers: The JDK includes development tools that increase attack surface and waste disk space. Use the JRE for production unless you specifically need dev tools for debugging.
  2. Using GraalVM Native Image for long-running workloads: You will lose 15-20% of peak throughput compared to the standard JVM, with no meaningful benefits for workloads that run for more than 10 minutes.
  3. Forgetting GraalVM build hints: Dynamic features like reflection will break at runtime if you don’t add explicit build hints, even if they work fine in local development. Always test native images thoroughly before deployment.
  4. Not enabling virtual threads: Spring Boot 4.0 enables virtual threads by default, but if you’re using older frameworks, you can enable them with a single JVM flag to get 10x higher concurrency with zero code changes.
  5. Sticking to outdated Java versions: Java 8 and 11 are now end of public support, and you are missing out on 10-20% lower heap usage, 2x faster startup, and hundreds of security fixes by not upgrading to Java 25 LTS.

Conclusion

To recap the key differences:

  • The JVM is the execution engine that runs Java bytecode, responsible for platform independence and memory management.
  • The JRE contains the JVM + core libraries, and is used only to run pre-compiled JVM apps.
  • The JDK contains the JRE + development tools, and is used to build, test, and package JVM apps.
  • GraalVM Native Image is a specialized runtime for short-lived workloads, with sub-100ms cold starts and very low memory footprint, but lower peak throughput than the standard JVM.

In 2026, the JVM is more capable than ever, competing with native languages for performance while retaining its famous backwards compatibility and large ecosystem. Choosing the right runtime for your use case will help you reduce costs, improve performance, and avoid avoidable production issues.


References

  1. OpenJDK Project Leyden Documentation: openjdk.org/projects/leyden
  2. Java 25 LTS Release Notes: openjdk.org/projects/jdk/25
  3. GraalVM 23 Native Image Documentation: graalvm.org/latest/reference-manual/native-image
  4. Spring Boot 4.0 Release Notes: spring.io/blog/2025/03/21/spring-boot-4-0-released
  5. Project Babylon Incubator Wiki: openjdk.org/projects/babylon