Tagged articles
Shutdown
20 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 explains the internal workflows of Linux's reboot, poweroff, and halt commands, covering their kernel interactions, parameters, safety considerations, and provides C++ simulations to illustrate each step for system administrators and developers.
C++ simulationLinuxShutdown
0 likes · 34 min read

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.
GRUBLinuxShutdown
0 likes · 34 min read

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

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

This guide explains how to safely shut down or reboot a Linux server by checking logged‑in users, running processes, and network connections, notifying users, running sync, and using the appropriate shutdown, reboot, halt, or poweroff commands with their key options.
LinuxShutdowncommands
0 likes · 9 min read

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

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

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

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 MaintenanceDevOpsShutdown
0 likes · 9 min read

This article explains why Java does not provide a forced stop for threads, demonstrates how to use interrupt and various ThreadPool shutdown methods—including shutdown, isShutdown, isTerminated, awaitTermination, and shutdownNow—to safely terminate threads, and provides practical code examples.
InterruptShutdownThread
0 likes · 10 min read

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.
MySQLReplicationSemi-Sync
0 likes · 12 min read

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

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.
LinuxShutdownreboot
0 likes · 3 min read

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.
ClientConfigurationIn-Memory
0 likes · 4 min read

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.
ConcurrencyExecutorsJava
0 likes · 19 min read

This article explains how to safely shut down or reboot Linux systems from the command line, covering the main commands, their Systemd origins, detailed usage options, scheduling tricks, and how to cancel pending shutdowns.
OperationsShutdownsystemd
0 likes · 6 min read

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.
Shutdowncommand-linesysadmin
0 likes · 6 min read


ITPUBJun 30, 2016 · Databases
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
