Tagged articles
kill command
15 articles · Page 1 of 1
This article explains why kill -9 fails to terminate Linux processes — covering guardian process restarts, uninterruptible D-state I/O waits, and zombie processes — and provides a systematic troubleshooting sequence for system-wide hangs: check disk space, OOM killer logs, and CPU vs I/O load before resorting to reboot.
LinuxOOM killerdisk space
0 likes · 7 min read

This article explains how to perform a graceful shutdown of Java services by using Linux kill signals, configuring JVM SignalHandler and Runtime shutdown hooks, releasing resources such as thread pools and sockets, and exposing a Spring Boot Actuator endpoint for controlled termination, complete with code examples and configuration details.
JVMJavaSignal Handling
0 likes · 16 min read

This article explains how MySQL processes the KILL command, detailing the interaction between threads, the role of the kill flag, and the is_killed() function, all illustrated with diagrams and code examples to help readers grasp thread termination internals.
MySQLSQLThread Management
0 likes · 4 min read

This article explains how to achieve graceful shutdown for Java applications by using Linux kill signals, JVM SignalHandler registration, Runtime.addShutdownHook, and Spring Boot's actuator shutdown endpoint, providing code examples and configuration details for safe resource cleanup.
JavaRuntime HookSignal Handling
0 likes · 13 min read

This article explains how to use the Linux kill command with SIGTERM, SIGQUIT, SIGKILL, and SIGSTOP signals to gracefully terminate, debug, force‑stop, or pause processes while minimizing data loss and providing practical command examples.
LinuxProcess ManagementSIGTERM
0 likes · 4 min read


ITPUBJan 11, 2025 · Operations
The article explains the true purpose of the Linux kill command, compares signals like SIGTERM and SIGKILL, warns about the dangers of force‑killing processes, and provides practical Java shutdown‑hook examples and a shell script for safe, graceful termination.
JavaLinuxProcess Management
0 likes · 7 min read

This article examines how session IDs are derived for the kill command in OceanBase, compares IDs obtained through show processlist, information_schema.processlist, and oceanbase.__all_virtual_processlist, and demonstrates methods to terminate all connections of a specific tenant across different observers and obproxies.
OceanBasekill commandprocesslist
0 likes · 7 min read

This article explains why using the Linux kill -9 command to stop Java services can cause data loss, demonstrates the differences between forceful and graceful termination, and provides multiple Spring Boot shutdown solutions—including kill -15, actuator endpoints, custom Tomcat connectors, and @PreDestroy hooks—complete with code examples.
JavaLinuxSpring Boot
0 likes · 21 min read

This guide shows how to identify a Linux process’s PID and safely terminate it using kill, killall, or pkill, covering signal options, common signals like SIGTERM and SIGKILL, and practical command examples for both foreground and background processes.
LinuxProcess ManagementSignals
0 likes · 5 min read

Learn how to identify and terminate Linux processes using commands like kill, killall, and pkill, including signal options, PID retrieval methods, and practical examples for both foreground and background tasks, ensuring safe and effective process management on Unix-like systems.
LinuxSignalskill command
0 likes · 6 min read

This article examines why MySQL’s KILL command often leaves a connection in a prolonged “Killed” state, analyzes the 5.7 source‑code flow, explains socket closure, thread flag handling, condition‑variable notifications, and reproduces real‑world cases that illustrate the underlying causes.
Database InternalsDebuggingMySQL
0 likes · 24 min read

This article explains the dangers of using the kill -9 command on Java services, illustrates how it can cause data loss, and presents several graceful shutdown techniques for Spring Boot—including SIGTERM, Actuator endpoints, custom Tomcat shutdown hooks, and @PreDestroy backups—complete with code examples and screenshots.
BackendJavaSpring Boot
0 likes · 19 min read

This article explains how the Linux kill -9 command can cause data loss and service instability, demonstrates safer alternatives such as kill -15 and Spring Boot's built‑in shutdown mechanisms, and provides code examples for implementing graceful termination, custom shutdown hooks, and pre‑destroy data backup in Java backend services.
JavaLinuxSpring Boot
0 likes · 19 min read

This article explains the true meaning of the Linux kill command, the differences between signals like SIGTERM and SIGKILL, the risks of using kill -9 for abrupt termination, and how to implement graceful shutdowns in Java and shell scripts.
JavaProcess ManagementSignals
0 likes · 7 min read


ITPUBApr 25, 2018 · Operations
This guide explains how to terminate unresponsive Linux applications using the kill family of commands, covering signal types, command syntax, PID discovery, and advanced tools like pkill, killall, and xkill, with practical examples and safety tips.
LinuxProcess ManagementSignals
0 likes · 6 min read
