Tagged articles
GarbageCollection
17 articles · Page 1 of 1
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.
ConcurrencyExecutorServiceGarbageCollection
0 likes · 13 min read

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

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.
GarbageCollectionJavaPerformanceUpgrade
0 likes · 31 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

This article dissects Kubelet's ImageManager and ImageGCManager, detailing their interfaces, implementation structs, pull‑policy handling, parallel image pulling, GC policy thresholds, and the step‑by‑step execution flow that governs image lifecycle on a node.
ContainerRuntimeGarbageCollectionGo
0 likes · 7 min read

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

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

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

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.
ConcurrencyExecutorServiceGarbageCollection
0 likes · 14 min read

This article investigates why a Java application can accumulate hundreds of waiting threads in a thread pool, explains how the lack of shutdown calls prevents garbage collection, and walks through the internal shutdown logic that finally releases both threads and the pool itself.
ExecutorServiceGarbageCollectionJava
0 likes · 11 min read


政采云技术Jan 18, 2022 · Fundamentals
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

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.
ConcurrencyFinalizeGarbageCollection
0 likes · 11 min read

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


ITPUBDec 6, 2019 · Fundamentals
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

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.
FTLFlashGarbageCollection
0 likes · 27 min read

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

This article explains the inner workings of ThreadLocal, the relationships among Thread, ThreadLocalMap, Entry, and various reference types, demonstrates how weak references behave during garbage collection, and shows practical code examples and reference‑queue usage to avoid memory‑leak pitfalls.
GarbageCollectionJavaMemoryLeak
0 likes · 13 min read
