Tagged articles
17 articles
Page 1 of 1
macrozheng
macrozheng
Dec 22, 2025 · Backend Development

Why Your Java ThreadPool Threads Aren’t Releasing and How Shutdown Fixes It

The article investigates a Java application that accumulated nearly a thousand waiting threads without high CPU or memory usage, identifies a custom FixedThreadPool as the cause, explains how thread pools become GC roots, and demonstrates that calling shutdown or shutdownNow properly releases both threads and the pool.

ExecutorServiceGarbageCollectionJVM
0 likes · 13 min read
Why Your Java ThreadPool Threads Aren’t Releasing and How Shutdown Fixes It
IT Services Circle
IT Services Circle
Sep 25, 2025 · Backend Development

Master Java Interviews: Overloading, HashMap, Thread Pools, GC & HTTP Essentials

This article combines practical advice for negotiating offers at Tonghuashun with a comprehensive Java interview cheat‑sheet covering method overloading vs overriding, final vs finally, sleep vs wait, HashMap insertion and resizing, reference types, HTTP request structure, status codes, thread‑pool parameters, and garbage‑collection algorithms.

GarbageCollectionHTTPHashMap
0 likes · 23 min read
Master Java Interviews: Overloading, HashMap, Thread Pools, GC & HTTP Essentials
Sanyou's Java Diary
Sanyou's Java Diary
Jul 24, 2025 · Backend Development

Why Upgrading to JDK 17 with ZGC Can Slash Costs and Boost Performance

This article explains how moving from Java 8 to JDK 17—leveraging new language features, updated APIs, and the ZGC garbage collector—can dramatically improve service latency, reduce GC pauses, lower machine costs, and enable AI SDKs that require Java 17, while also detailing migration steps and performance results.

GarbageCollectionJavaPerformancejdk17
0 likes · 31 min read
Why Upgrading to JDK 17 with ZGC Can Slash Costs and Boost Performance
JD Cloud Developers
JD Cloud Developers
Jun 6, 2025 · Backend Development

Seamless Java JDK 21 Upgrade: Solving Dependency and Build Challenges

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
Seamless Java JDK 21 Upgrade: Solving Dependency and Build Challenges
Selected Java Interview Questions
Selected Java Interview Questions
Jul 7, 2024 · Backend Development

Understanding Thread Pool Shutdown and Garbage Collection in Java

This article explains why a Java thread pool with many waiting threads does not release resources, how calling shutdown or shutdownNow interrupts idle workers, how the ThreadPoolExecutor internals handle interruptions, and why proper shutdown is essential to allow both threads and the pool itself to be garbage‑collected.

ExecutorServiceGarbageCollectionJava
0 likes · 11 min read
Understanding Thread Pool Shutdown and Garbage Collection in Java
DaTaobao Tech
DaTaobao Tech
Mar 22, 2024 · Backend Development

Understanding JVM Memory, GC, and Performance Tuning

The article explains JVM runtime memory regions, heap allocation and generational layout, object reference types, major garbage‑collection algorithms and collectors, class‑loading phases, and provides practical tuning commands and case studies for optimizing GC pauses, preventing memory leaks, and diagnosing performance bottlenecks.

GarbageCollectionJVMJava
0 likes · 33 min read
Understanding JVM Memory, GC, and Performance Tuning
JD Retail Technology
JD Retail Technology
Jan 19, 2024 · Backend Development

Comprehensive Guide to Upgrading from JDK8/11 to JDK17: Performance Gains, New Language Features, and Migration Steps

This article explains why upgrading from JDK8 or JDK11 to the long‑term support JDK17 brings significant garbage‑collector performance improvements, new language features, and better framework compatibility, and provides detailed migration steps, Maven and SpringBoot configuration changes, and troubleshooting tips.

GarbageCollectionJDKJava
0 likes · 16 min read
Comprehensive Guide to Upgrading from JDK8/11 to JDK17: Performance Gains, New Language Features, and Migration Steps
MaGe Linux Operations
MaGe Linux Operations
Aug 21, 2023 · Backend Development

Why Your Java ThreadPool Won’t Release Threads – The Hidden Power of shutdown()

This article explores why a Java thread pool can retain hundreds of waiting threads, explains how the shutdown and shutdownNow methods trigger thread interruption, details the internal worker lifecycle that leads to garbage collection, and provides practical code demos to ensure proper resource cleanup.

ExecutorServiceGarbageCollectionJava
0 likes · 14 min read
Why Your Java ThreadPool Won’t Release Threads – The Hidden Power of shutdown()
政采云技术
政采云技术
Jan 18, 2022 · Fundamentals

Comprehensive Overview of the Java Virtual Machine (JVM) – From Source Code to Bytecode

This article provides a thorough, step‑by‑step exploration of the Java Virtual Machine, covering official documentation, the G1 garbage collector, HotSpot architecture, class file structure, constant‑pool parsing, bytecode inspection with hexdump and javap, and prepares readers for deeper JVM class‑loading concepts.

ConstantPoolGarbageCollectionJVM
0 likes · 14 min read
Comprehensive Overview of the Java Virtual Machine (JVM) – From Source Code to Bytecode
Programmer DD
Programmer DD
Dec 11, 2020 · Backend Development

Why Does Executors.newSingleThreadExecutor Shut Down Unexpectedly? Uncovering GC and Finalize Mysteries

This article investigates the intermittent RejectedExecutionException caused by Executors.newSingleThreadExecutor, explains how Java's garbage collector and finalize method can prematurely shut down thread pools, demonstrates the behavior with reproducible code, and shows how newer JDK versions have fixed the issue.

GarbageCollectionJavaThreadPool
0 likes · 11 min read
Why Does Executors.newSingleThreadExecutor Shut Down Unexpectedly? Uncovering GC and Finalize Mysteries
Architect's Tech Stack
Architect's Tech Stack
Dec 30, 2019 · Fundamentals

New Features and Enhancements in Java 11

The article provides a comprehensive overview of Java 11’s new capabilities, including Unicode 10 support, the standardization of HttpClient, collection API improvements, dynamic compiler threads, advanced garbage collectors, nest‑based access control, added cryptographic algorithms, lambda‑var syntax, single‑file execution, Flight Recorder integration, removed modules, upgrade recommendations, and useful migration tools.

FlightRecorderGarbageCollectionHttpClient
0 likes · 10 min read
New Features and Enhancements in Java 11
ITPUB
ITPUB
Dec 6, 2019 · Fundamentals

What Are the Top 5 Java 14 Features You Should Know?

This article reviews the five most anticipated Java 14 enhancements—including instanceof pattern matching, preview text blocks, record types, the jpackage tool, and the deprecation of the ParallelScavenge + SerialOld garbage‑collector combo—explaining their purpose, usage, and impact on developers.

GarbageCollectionJavaPatternMatching
0 likes · 8 min read
What Are the Top 5 Java 14 Features You Should Know?
Architects' Tech Alliance
Architects' Tech Alliance
Jul 10, 2019 · Fundamentals

Analyzing Performance Factors of NVMe SSDs and Optimizing Storage Systems

This article examines the evolution of semiconductor storage, explains how NVMe SSDs work, identifies hardware, software, and environmental factors that affect their performance, and discusses how storage‑software design and I/O patterns can be optimized to achieve stable, high‑throughput flash storage in data centers.

FLASHFTLGarbageCollection
0 likes · 27 min read
Analyzing Performance Factors of NVMe SSDs and Optimizing Storage Systems
Java Captain
Java Captain
Mar 8, 2018 · Fundamentals

JDK 10 Release Introduces 109 New Features Including 12 Key JEPs

Scheduled for a March 20 release, JDK 10 brings 109 new features—most notably a set of 12 JEPs such as local‑variable type inference, a unified repository, a new GC interface, and enhanced class‑data sharing—while also adding 73 standard library updates and JVM spec changes.

ClassDataSharingGarbageCollectionJDK10
0 likes · 4 min read
JDK 10 Release Introduces 109 New Features Including 12 Key JEPs