Tagged articles
20 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
Deepin Linux
Deepin Linux
Nov 7, 2025 · Fundamentals

What Happens When You Power On a Linux Machine? Inside the Kernel Boot Process

This article explains step by step how a Linux system boots—from hardware initialization by BIOS/UEFI, through the GRUB bootloader loading the compressed kernel, to kernel decompression, initramfs setup, root filesystem mounting, init system startup, user login, and finally the orderly shutdown process, providing practical commands and troubleshooting tips.

Boot ProcessGRUBInitramfs
0 likes · 34 min read
What Happens When You Power On a Linux Machine? Inside the Kernel Boot Process
FunTester
FunTester
Jun 17, 2025 · Backend Development

How to Test Java ExecutorService Without Thread.sleep(): Reliable Strategies

This article explains why using Thread.sleep() in Java ExecutorService unit tests is unreliable and inefficient, and introduces three robust alternatives—Future.get(), CountDownLatch, and shutdown/awaitTermination—to achieve stable and performant testing of asynchronous code.

CountDownLatchExecutorServiceFuture
0 likes · 13 min read
How to Test Java ExecutorService Without Thread.sleep(): Reliable Strategies
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
Cognitive Technology Team
Cognitive Technology Team
Feb 17, 2024 · Fundamentals

Understanding TCP Connection Termination: Four-Way Handshake, Half‑Close, Shutdown, and TIME_WAIT

This article explains how TCP connections are gracefully closed using the four‑way handshake, describes half‑close and half‑open states, compares the close and shutdown system calls, details the TIME_WAIT state and its impact, and offers practical techniques to reduce or avoid TIME_WAIT accumulation.

Connection terminationShutdownTCP
0 likes · 12 min read
Understanding TCP Connection Termination: Four-Way Handshake, Half‑Close, Shutdown, and TIME_WAIT
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()
Architecture Digest
Architecture Digest
Jul 26, 2023 · Backend Development

Why ThreadPoolExecutor Threads Are Not Reclaimed Without Calling shutdown in Java

The article explains how a Java ThreadPoolExecutor can retain hundreds of waiting threads when shutdown is omitted, analyzes the GC‑root relationship of running threads, and demonstrates through code and JVisualVM screenshots that invoking shutdown or shutdownNow properly interrupts idle workers, removes them from the pool, and allows both the worker threads and the thread‑pool object to be garbage‑collected.

JavaShutdownThreadPoolExecutor
0 likes · 12 min read
Why ThreadPoolExecutor Threads Are Not Reclaimed Without Calling shutdown in Java
MaGe Linux Operations
MaGe Linux Operations
Mar 19, 2023 · Operations

Safely Shut Down and Restart Your Kubernetes Cluster

This guide walks you through the essential steps, precautions, and commands needed to safely drain nodes, back up critical resources, shut down a Kubernetes cluster, and reliably bring it back online while avoiding common pitfalls.

Cluster MaintenanceDevOpsRestart
0 likes · 9 min read
Safely Shut Down and Restart Your Kubernetes Cluster
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 28, 2022 · Databases

Testing Safe vs. Forceful MySQL Shutdown in a Semi‑Synchronous Replication Setup

This article presents a detailed experiment comparing graceful and kill‑9 shutdown methods on a MySQL 5.7 semi‑synchronous master‑slave cluster, analyzes their impact on data consistency, and outlines the official shutdown sequence with practical observations and recommendations for production environments.

ReplicationSemi‑SyncShutdown
0 likes · 12 min read
Testing Safe vs. Forceful MySQL Shutdown in a Semi‑Synchronous Replication Setup
vivo Internet Technology
vivo Internet Technology
Dec 16, 2021 · Fundamentals

In‑Depth Analysis of JDK ThreadPoolExecutor: Construction, Execution Flow, Worker Mechanics, Shutdown and Custom Extensions

The article thoroughly dissects Java’s ThreadPoolExecutor, explaining its constructor parameters, the ctl‑based state machine that governs thread creation, task queuing, worker locking, shutdown sequences, built‑in rejection policies, and demonstrates a real‑world extension via Vivo’s NexTask framework for high‑performance backend processing.

ExecutorServiceJava concurrencyShutdown
0 likes · 33 min read
In‑Depth Analysis of JDK ThreadPoolExecutor: Construction, Execution Flow, Worker Mechanics, Shutdown and Custom Extensions
Open Source Linux
Open Source Linux
Sep 2, 2021 · Operations

Master Linux Shutdown: Safely Power Off or Reboot Your System

This guide explains how to use the Linux shutdown command to safely power off or reboot a system, covering warning notifications, time specifications, available options, and practical examples for immediate, delayed, or scheduled shutdowns and reboots.

LinuxRebootShutdown
0 likes · 3 min read
Master Linux Shutdown: Safely Power Off or Reboot Your System
Practical DevOps Architecture
Practical DevOps Architecture
May 10, 2021 · Databases

Redis Advantages, Disadvantages, Use Cases, Shutdown Methods, and Configuration Guide

This article outlines Redis's key advantages such as high performance and flexible data types, discusses its limitations like lack of relational features, describes ideal in‑memory use cases, compares it with Memcached, and provides detailed instructions for shutting down, configuring, and connecting to Redis using command‑line and graphical clients.

ConfigurationIn-MemoryPersistence
0 likes · 4 min read
Redis Advantages, Disadvantages, Use Cases, Shutdown Methods, and Configuration Guide
Architecture Digest
Architecture Digest
Oct 20, 2020 · Backend Development

Deep Dive into Java ThreadPoolExecutor: Creation, Task Execution, and Shutdown Mechanisms

This article provides an in‑depth analysis of Java's ThreadPoolExecutor, explaining how Executors' factory methods create pools, detailing the constructor parameters, internal state management, task submission via execute, worker thread lifecycle, and the differences between shutdown and shutdownNow, with code excerpts for clarity.

ExecutorsJavaShutdown
0 likes · 19 min read
Deep Dive into Java ThreadPoolExecutor: Creation, Task Execution, and Shutdown Mechanisms
Liangxu Linux
Liangxu Linux
Aug 13, 2019 · Operations

Master Linux Shutdown: Commands, History, and Safe Usage

This guide explains Linux shutdown-related commands, their historical transition to systemd, detailed usage examples, option flags, scheduling formats, and how to safely cancel or force immediate shutdowns on servers and desktop systems.

ShutdownSysadmincommand-line
0 likes · 6 min read
Master Linux Shutdown: Commands, History, and Safe Usage
ITPUB
ITPUB
Jun 30, 2016 · Databases

Safely Shut Down and Restart an Oracle RAC Cluster Without Service Disruption

This guide explains why using a forced OS shutdown on an Oracle RAC cluster can leave services in an UNKNOWN state and provides a step‑by‑step, gentle procedure using crs_stat and srvctl commands to check status, shut down databases, ASM instances, and node services in the correct order, then restart them safely.

ClusterOracleRAC
0 likes · 3 min read
Safely Shut Down and Restart an Oracle RAC Cluster Without Service Disruption