Tagged articles
14 articles
Page 1 of 1
Top Architect
Top Architect
Dec 22, 2025 · Backend Development

Graceful Shutdown of Java Applications: kill Commands, JVM Hooks, and Spring Boot Actuator

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.

Graceful ShutdownJVMJava
0 likes · 16 min read
Graceful Shutdown of Java Applications: kill Commands, JVM Hooks, and Spring Boot Actuator
ITPUB
ITPUB
Jan 11, 2025 · Operations

Why Using kill ‑9 Is Risky and How to Shut Down Processes Gracefully

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.

Graceful ShutdownJavaKill Command
0 likes · 7 min read
Why Using kill ‑9 Is Risky and How to Shut Down Processes Gracefully
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 27, 2023 · Databases

Investigation of session_id source and bulk tenant connection termination in OceanBase via observer and obproxy

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.

Kill CommandOceanBaseprocesslist
0 likes · 7 min read
Investigation of session_id source and bulk tenant connection termination in OceanBase via observer and obproxy
Top Architect
Top Architect
Dec 15, 2022 · Backend Development

Graceful Shutdown of Spring Boot Applications: Avoiding kill -9 Pitfalls

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.

Graceful ShutdownJavaKill Command
0 likes · 21 min read
Graceful Shutdown of Spring Boot Applications: Avoiding kill -9 Pitfalls
Open Source Linux
Open Source Linux
Sep 22, 2022 · Operations

Master Linux Process Termination: kill, killall, and pkill Explained

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.

Kill CommandLinuxkillall
0 likes · 6 min read
Master Linux Process Termination: kill, killall, and pkill Explained
dbaplus Community
dbaplus Community
Jun 19, 2021 · Databases

Why Does MySQL’s KILL Command Sometimes Hang? A Deep Dive into Thread States and Kill Workflow

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 InternalsDebuggingKill Command
0 likes · 24 min read
Why Does MySQL’s KILL Command Sometimes Hang? A Deep Dive into Thread States and Kill Workflow
Java Backend Technology
Java Backend Technology
May 9, 2021 · Backend Development

Why kill -9 Can Crash Your Spring Boot Service and How to Shut It Down Gracefully

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.

BackendGraceful ShutdownJava
0 likes · 19 min read
Why kill -9 Can Crash Your Spring Boot Service and How to Shut It Down Gracefully
Top Architect
Top Architect
Apr 14, 2021 · Backend Development

Graceful Shutdown of Spring Boot Applications and the Risks of Using kill -9

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.

Graceful ShutdownJavaKill Command
0 likes · 19 min read
Graceful Shutdown of Spring Boot Applications and the Risks of Using kill -9