Tagged articles
JDK21
29 articles · Page 1 of 1
The article explains how most SpringBoot bottlenecks stem from IO blocking rather than CPU limits, and shows that enabling JDK 21 virtual threads with SpringBoot 3.2+ can boost IO‑bound throughput by 3‑5× while cutting memory usage over 60%, backed by detailed benchmark data and practical guidance.
ConcurrencyIO BlockingJDK21
0 likes · 14 min read

This guide walks you through practical performance tuning of Tomcat 11 on JDK 21, covering JVM memory settings, GC selection, connector and thread‑pool optimization, virtual‑thread integration, benchmark scripts, security hardening, high‑availability deployment, and comprehensive monitoring and troubleshooting techniques.
DockerG1 GCJDK21
0 likes · 51 min read

This comprehensive guide walks you through diagnosing Full GC pauses on a Java 2020 production outage, explains JVM memory structures, compares JDK 21 garbage collectors, and provides step‑by‑step installation, configuration, and tuning instructions for Tomcat, monitoring tools, and real‑world case studies to achieve stable, high‑throughput services.
GCJDK21JVM
0 likes · 33 min read

Upgrading a company's Java stack from JDK 11 to JDK 21, while staying on Spring Boot 2.7.18, provides long‑term security support, leverages virtual threads, new low‑latency garbage collectors, modern language features like records and pattern‑matching, and avoids costly Jakarta EE namespace migration, with detailed steps for pom changes, MongoDB configuration, code adjustments, and post‑upgrade validation.
JDK21JavaVirtualThreads
0 likes · 16 min read

The article walks through the author's personal upgrade from Java 8 to Java 21, comparing preview features, pattern‑matching instanceof, switch expressions, text blocks, the new HTTP client, var inference, virtual threads, records, immutable collections, try‑with‑resources improvements and other enhancements, while rating each feature’s practicality.
JDK21JavaJava8
0 likes · 16 min read

This article details a systematic, zero‑failure migration of 660 backend Java services from JDK 8 to JDK 21, covering performance gains, new language features, compatibility risks, a three‑phase upgrade workflow, custom tooling, and the measurable benefits achieved.
JDK21JavaUpgrade
0 likes · 22 min read

Over six months the team upgraded 660 enterprise Java services from JDK 8 to JDK 21 with zero P3‑level incidents, using a risk‑first strategy, automated compatibility scanning, custom upgrade tooling, batch roll‑outs and a one‑click rollback mechanism that delivered up to 50% memory savings, 13% CPU reduction and noticeable throughput gains.
JDKJDK21Java
0 likes · 23 min read

This article outlines the motivations, challenges, and step‑by‑step solutions for migrating over 100 Java applications to JDK 21, covering dependency conflicts, module system adjustments, Maven plugin compatibility, garbage‑collector selection, and practical build and deployment practices to ensure a smooth upgrade.
Dependency ManagementJDK21Maven
0 likes · 13 min read

This article outlines the motivations, progress, and common issues encountered when upgrading over 100 Java applications to JDK 21, including deprecated APIs, module system constraints, Maven plugin incompatibilities, and GC choices, and provides concrete migration steps, configuration templates, and best‑practice recommendations for a smooth transition.
GarbageCollectionJDK21Java
0 likes · 12 min read

The article traces Java’s concurrency evolution from heavyweight thread‑per‑request and complex reactive models to JDK 21’s virtual threads, which act as stack‑ful coroutines offering lightweight, heap‑allocated threads, full stack traces, and blocking‑I/O compatibility while preserving the familiar thread API.
Async ProgrammingConcurrencyCoroutines
0 likes · 24 min read

JEP 453 integrates StructuredTaskScope into Java 21, offering a preview API that replaces Future with Subtask, enabling lightweight virtual‑thread based concurrent tasks, such as fetching data from multiple servers and automatically cancelling slower calls, while simplifying error handling and improving observability.
ConcurrencyJDK21Java
0 likes · 8 min read

The article introduces JDK 21’s latest long‑term‑support features—including virtual threads, sequenced collections, preview string templates, record patterns, and switch pattern matching—explaining their concepts, benefits, and providing concrete Java code examples for each.
JDK21JavaRecordPatterns
0 likes · 14 min read

This article explores Java virtual threads introduced in JDK 21, detailing their architecture, implementation, practical usage with Thread and Executors APIs, performance comparisons against platform threads, best‑practice guidelines, and benchmark results demonstrating superior throughput for high‑concurrency server applications.
ConcurrencyJDK21Java
0 likes · 24 min read

This article explains the motivations for upgrading to JDK21, introduces Generational ZGC, details integration steps and monitoring setup, presents performance test results comparing ZGC and Generational ZGC, and outlines future plans for Java services at Zhaozhuan.
BackendGenerational ZGCJDK21
0 likes · 21 min read

Java virtual threads, introduced in JDK 21, decouple Java threads from OS threads by using continuations and a ForkJoinPool scheduler, allowing millions of cheap, blocking‑friendly threads that boost throughput and simplify concurrent code compared to traditional platform threads or reactive frameworks, as demonstrated by performance benchmarks.
JDK21Javavirtual threads
0 likes · 23 min read

This article explains why the backend services were upgraded from JDK 8 to JDK 21, introduces the generational ZGC garbage collector, details its architecture, tuning parameters, integration steps, monitoring setup, and presents performance test results that demonstrate reduced allocation stalls, lower latency, higher throughput, and near‑zero GC pauses.
BackendGenerational ZGCJDK21
0 likes · 20 min read

Using JDK 21’s standardized Virtual Threads, this guide explains how to design and implement robust asynchronous batch processing, covering common pitfalls like CPU spikes and OOM, best‑practice concurrency controls, task queue architecture, and practical code illustrations.
AsynchronousProcessingBackendBatchProcessing
0 likes · 6 min read

This article explains Java virtual threads, contrasting them with platform threads, and shows how to create, schedule, and use them effectively with Thread.Builder and Executors to achieve high‑throughput, low‑latency server applications while avoiding common pitfalls like pooling and pinning.
ConcurrencyJDK21backend development
0 likes · 14 min read

The article explains how a custom java.net.spi.InetAddressResolverProvider SPI that works in a regular Spring Boot 3.x JAR fails when the OpenTelemetry Java agent is added because the agent’s JarLoader cannot read the SPI configuration inside the BOOT‑INF layout, and resolves the issue by disabling the agent’s own resolver resource so the custom provider is used.
JDK21JavaOpenTelemetry
0 likes · 11 min read

This article explains Java 21’s preview features—including record patterns, enhanced switch expressions, virtual threads, string template processors, sequenced collections, and unnamed patterns—showing how they simplify type checks, pattern matching, and code readability with practical code examples.
JDK21Record PatternsSequenced Collections
0 likes · 18 min read

Trace2.0 is an OpenTelemetry‑based application monitoring system that processes petabyte‑scale trace data using multi‑channel client protocols, gRPC, load‑balancing optimizations, ZSTD compression, Kafka pipelines, ClickHouse storage, and a JDK 21 upgrade with virtual threads, achieving significant performance and cost improvements.
ClickHouseData CompressionJDK21
0 likes · 15 min read

After upgrading to IntelliJ 2023.3 for better JDK 21 virtual‑thread support, users encounter a Groovyc ClassNotFoundError caused by missing IntelliJ internal classes, and the article outlines the affected builds and three practical work‑arounds, including a JVM option to run Groovyc in‑process.
GroovyIntelliJJDK21
0 likes · 4 min read

This article explains JDK21's new virtual threads, compares them with traditional thread pools through a 10,000‑thread benchmark, shows over 20‑fold performance gains, and provides practical code examples and configuration tips for Java developers.
JDK21Java ConcurrencyPerformance Test
0 likes · 8 min read

This article explains Java 21 virtual threads, their lightweight nature, cost advantages over platform threads, practical code examples, performance experiments, and how they enable high‑throughput backend applications with minimal code changes.
ConcurrencyJDK21Java
0 likes · 11 min read

Java 21, released on September 19 as a long‑term‑support release with eight years of Oracle support, introduces fifteen JEPs—including preview string templates, record patterns, switch pattern matching, virtual threads, scoped values, structured concurrency, foreign function & memory APIs, and a new sequenced‑collection interface—along with numerous performance, security, and deprecation updates, all illustrated with code examples.
JDK21JavaProject Amber
0 likes · 13 min read

The new GraalVM for JDK 21 brings full virtual‑thread support, native‑image capabilities without preview flags, performance improvements, early Java Vector API optimizations, and a high‑performance runtime for Java and other languages, with download links and additional resources for developers.
GraalVMJDK21Java
0 likes · 4 min read

JDK 21 introduces Sequenced Collections with new interfaces and unified methods, allowing developers to retrieve the first and last elements of List, Deque, and Set collections using a single, consistent API instead of disparate, cumbersome calls.
JDK21JavaSequencedCollections
0 likes · 3 min read

The article announces the official GA release of JDK 21, explains common version labels such as Alpha, Beta, RC and LTS, highlights the standout Virtual Threads feature requiring minimal code changes, and reviews the fifteen new JEPs across core libraries, language specifications, HotSpot and security enhancements.
JDK21JavaJavaFeatures
0 likes · 12 min read

Java 21, slated for release on September 19, 2023 as the next LTS version after Java 17, will drop the experimental Generational Shenandoah garbage‑collector feature during its Ramp‑down phase due to insufficient readiness, with the change slated for removal by the June 14 review deadline.
Generational GCJDK21Java
0 likes · 4 min read
