Tagged articles

Graceful Shutdown

127 articles · Page 2 of 2
Programmer DD
Programmer DD
Apr 28, 2021 · Backend Development

How to Gracefully Shut Down a Spring Boot Application: 5 Proven Methods

Learn five practical ways to gracefully shut down a Spring Boot application—including using Actuator’s shutdown endpoint, closing the application context, PID file handling, SpringApplication.exit, and a custom shutdown controller—so unfinished tasks finish, logs flush, and services stop safely without resorting to kill‑9.

ActuatorBackendGraceful Shutdown
0 likes · 9 min read
How to Gracefully Shut Down a Spring Boot Application: 5 Proven Methods
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
Open Source Linux
Open Source Linux
Feb 26, 2021 · Backend Development

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

This article explains the dangers of using the Linux kill -9 command for terminating processes, illustrates how abrupt termination can cause data inconsistency in transactional systems, and provides step‑by‑step methods—including Spring Boot actuator, custom Tomcat shutdown, and @PreDestroy hooks—to achieve graceful service shutdown.

Graceful ShutdownLinux killSpring Boot
0 likes · 19 min read
Why kill -9 Can Crash Your Service and How to Shut Down Spring Boot Gracefully
Code Ape Tech Column
Code Ape Tech Column
Feb 9, 2021 · Backend Development

Graceful Shutdown of Spring Boot Services: Why kill -9 Is Dangerous and How to Stop Applications Properly

This article explains the risks of using the Linux kill -9 command to terminate Spring Boot applications, demonstrates how it can cause data inconsistency and thread interruptions, and provides several graceful shutdown techniques—including SIGTERM, Spring's ConfigurableApplicationContext, Actuator endpoints, and custom Tomcat shutdown hooks—to safely stop services and optionally perform data backup.

ActuatorGraceful ShutdownThread.interrupt
0 likes · 19 min read
Graceful Shutdown of Spring Boot Services: Why kill -9 Is Dangerous and How to Stop Applications Properly
Java Captain
Java Captain
Jan 30, 2021 · Backend Development

Graceful Shutdown of Spring Boot Applications: Risks of kill -9 and Proper Termination Techniques

This article explains why using the forceful kill -9 command to stop Linux processes can cause data loss and inconsistent states, especially in distributed systems, and demonstrates several graceful shutdown methods for Spring Boot—including SIGTERM, ConfigurableApplicationContext.close(), Actuator shutdown endpoints, custom Tomcat connector handling, and @PreDestroy data‑backup hooks—complete with code examples and execution logs.

BackendGraceful ShutdownJava
0 likes · 22 min read
Graceful Shutdown of Spring Boot Applications: Risks of kill -9 and Proper Termination Techniques
Zhuanzhuan Tech
Zhuanzhuan Tech
Dec 31, 2020 · Operations

How to Implement Graceful Restart of the JVM

This article explains the three JVM shutdown methods, how to use ShutdownHook and custom SignalHandler for cleanup, and outlines a step‑by‑step graceful restart process using kill -12, kill -15, and kill -9 signals, with sample scripts and references.

Graceful ShutdownJVMJava
0 likes · 5 min read
How to Implement Graceful Restart of the JVM
Architect's Tech Stack
Architect's Tech Stack
Nov 29, 2020 · Backend Development

Graceful Shutdown in Spring Boot 2.3.4: Configuration, Code Examples, and Shutdown Mechanisms

This article explains how Spring Boot 2.3.4 implements graceful shutdown for Jetty, Reactor Netty, Tomcat and Undertow, shows the simple YAML configuration, demonstrates code examples using DisposableBean and @PreDestroy, and describes the actuator shutdown endpoint and its relevance to Kubernetes liveness and readiness probes.

Graceful ShutdownKubernetesSpring Boot
0 likes · 8 min read
Graceful Shutdown in Spring Boot 2.3.4: Configuration, Code Examples, and Shutdown Mechanisms
Architect's Tech Stack
Architect's Tech Stack
Nov 23, 2020 · Backend Development

Graceful Shutdown in Java: Using Shutdown Hooks and ThreadPool Management

This article explains the concept of graceful shutdown for Java services, demonstrates how to register shutdown hooks with Runtime.getRuntime().addShutdownHook, provides a complete code example using thread pools, shows the execution results, and discusses best practices for safely terminating applications.

Graceful ShutdownThreadPooloperations
0 likes · 8 min read
Graceful Shutdown in Java: Using Shutdown Hooks and ThreadPool Management
Alibaba Cloud Native
Alibaba Cloud Native
Sep 14, 2020 · Cloud Native

Achieving Zero‑Downtime Deployments with Spring Cloud on Kubernetes

This article explains how to implement graceful up‑ and down‑scaling for Spring Cloud applications running on Kubernetes, covering design principles, signal handling, resource cleanup, Spring Boot configuration, multiple deployment scenarios, and integration with Kubernetes health probes to ensure lossless traffic flow.

Graceful ShutdownKubernetesSpring Cloud
0 likes · 14 min read
Achieving Zero‑Downtime Deployments with Spring Cloud on Kubernetes
dbaplus Community
dbaplus Community
Aug 23, 2020 · Backend Development

Implementing Graceful Shutdown for Java Microservices with ShutdownHook

This article explains why abrupt service restarts cause "Can not get connection to server" errors in Zookeeper‑based microservices and details a Java ShutdownHook solution that deregisters instances, processes in‑flight requests, and prevents client‑side failures during graceful shutdown.

Graceful ShutdownJavaShutdownHook
0 likes · 8 min read
Implementing Graceful Shutdown for Java Microservices with ShutdownHook
Top Architect
Top Architect
Jul 15, 2020 · Backend Development

Graceful Shutdown in Spring Boot 2.3: Configuration, Usage, and Best Practices

This article explains how Spring Boot 2.3 provides built‑in graceful shutdown for embedded web servers, how to enable it with configuration, the role of the Shutdown enum and timeout settings, and additional techniques such as Actuator endpoints and signal handling to ensure safe application termination.

ActuatorGraceful ShutdownJava
0 likes · 5 min read
Graceful Shutdown in Spring Boot 2.3: Configuration, Usage, and Best Practices
Sohu Tech Products
Sohu Tech Products
Jun 3, 2020 · Backend Development

Graceful Shutdown in Spring Boot 2.3 and Earlier Versions

This article explains how to enable and use Spring Boot's graceful shutdown feature in version 2.3, including configuration of the embedded web server and Actuator, and also provides a custom solution for older Spring Boot releases to achieve smooth termination of ongoing requests.

ActuatorGraceful ShutdownSpring Boot
0 likes · 8 min read
Graceful Shutdown in Spring Boot 2.3 and Earlier Versions
Programmer DD
Programmer DD
Jun 3, 2020 · Backend Development

Mastering Graceful Shutdown in Spring Boot 2.3: Best Practices & Code

This article explains why graceful shutdown is essential for Spring Boot and Spring Cloud applications, outlines key precautions, shows how Spring Boot 2.3 adds built‑in support, and provides configuration steps, code examples, and container‑specific behaviors to ensure clean service termination.

ActuatorGraceful ShutdownJava
0 likes · 7 min read
Mastering Graceful Shutdown in Spring Boot 2.3: Best Practices & Code
Java Architecture Diary
Java Architecture Diary
May 18, 2020 · Operations

How to Implement Graceful Shutdown in Spring Boot 2.3 and Avoid Data Loss

Learn how Spring Boot 2.3’s built-in graceful shutdown works, configure it with server.shutdown=graceful, understand shutdown phases, timeout settings, and see code examples for handling shutdown hooks and actuator endpoints, ensuring active requests finish without data inconsistency across Tomcat, Jetty, Netty, and Undertow.

ActuatorGraceful Shutdownshutdown hook
0 likes · 5 min read
How to Implement Graceful Shutdown in Spring Boot 2.3 and Avoid Data Loss
Big Data Technology Architecture
Big Data Technology Architecture
Mar 7, 2020 · Operations

How to Perform a Graceful Shutdown of an Elasticsearch Node

This article outlines a step‑by‑step procedure for safely taking an Elasticsearch node offline—checking master‑eligible settings, adjusting minimum_master_nodes, excluding the node from routing, waiting for shard relocation, stopping the service, and restoring the cluster routing—ensuring no data loss or service interruption.

DevOpsElasticsearchGraceful Shutdown
0 likes · 6 min read
How to Perform a Graceful Shutdown of an Elasticsearch Node
Java Captain
Java Captain
Jan 18, 2020 · Backend Development

Graceful Shutdown Techniques for Spring Boot Applications

This article explains why graceful shutdown is important for Spring Boot services and demonstrates five practical methods—including Actuator shutdown, context closing, PID file handling, SpringApplication.exit, and a custom controller—each with complete code examples and usage instructions.

ActuatorGraceful ShutdownJava
0 likes · 8 min read
Graceful Shutdown Techniques for Spring Boot Applications
Programmer DD
Programmer DD
Oct 11, 2019 · Backend Development

Mastering Graceful Shutdown in Dubbo: From 2.5.x to 2.7.x

This article explores Dubbo's graceful shutdown mechanisms across versions 2.5.x, 2.6.x, and 2.7.x, detailing the underlying shutdown hooks, registry and protocol cleanup, Spring integration challenges, and best‑practice configurations to ensure in‑flight requests complete without service disruption.

DubboGraceful ShutdownJava
0 likes · 19 min read
Mastering Graceful Shutdown in Dubbo: From 2.5.x to 2.7.x
Programmer DD
Programmer DD
Jul 28, 2019 · Backend Development

How to Gracefully Shut Down a Spring Boot Application with Embedded Tomcat

Learn how to implement a smooth, graceful shutdown for Spring Boot applications that use an embedded Tomcat server by customizing the Tomcat connector, enabling the Actuator shutdown endpoint, and automating the process with scripts, ensuring in‑flight requests complete before the service stops.

ActuatorGraceful ShutdownSpring Boot
0 likes · 10 min read
How to Gracefully Shut Down a Spring Boot Application with Embedded Tomcat
Programmer DD
Programmer DD
Sep 22, 2018 · Backend Development

Why kill -9 vs kill -15? Mastering Graceful Shutdown in Spring Boot

This article explains the difference between kill -9 and kill -15 signals, how Spring Boot processes the TERM signal, and provides practical code examples for implementing graceful shutdown, including shutdown hooks, DisposableBean, and proper thread‑pool termination strategies.

DisposableBeanGraceful ShutdownJava
0 likes · 17 min read
Why kill -9 vs kill -15? Mastering Graceful Shutdown in Spring Boot
Programmer DD
Programmer DD
Apr 1, 2018 · Backend Development

Graceful Shutdown of Spring Boot ThreadPoolTaskScheduler to Prevent Redis Errors

This article explains why asynchronous @Async tasks using a custom ThreadPoolTaskScheduler can fail during application shutdown due to premature Redis connection pool destruction, and provides a step‑by‑step solution using Spring's shutdown configuration to wait for tasks to complete before closing resources.

@AsyncGraceful ShutdownSpring Boot
0 likes · 8 min read
Graceful Shutdown of Spring Boot ThreadPoolTaskScheduler to Prevent Redis Errors
Node Underground
Node Underground
Oct 25, 2016 · Backend Development

How to Gracefully Shut Down Your Application: A Step-by-Step Guide

Graceful application shutdown prevents blocked requests, accidental data writes, and operation failures by releasing resources, closing database connections, and handling SIGTERM signals, and this article outlines a practical step-by-step process—including load balancer coordination and sample Node.js code—to ensure clean termination.

Graceful ShutdownResource CleanupSIGTERM
0 likes · 2 min read
How to Gracefully Shut Down Your Application: A Step-by-Step Guide
Node Underground
Node Underground
Nov 10, 2015 · Backend Development

Mastering Node.js Multi‑Process: Load Balancing, Graceful Shutdown & IPC

This article explains how to build a robust multi‑process Node.js server using the cluster module, covering round‑robin load balancing, graceful worker shutdown, process monitoring, and inter‑process communication with code examples for both master and worker processes.

Graceful ShutdownIPCNode.js
0 likes · 15 min read
Mastering Node.js Multi‑Process: Load Balancing, Graceful Shutdown & IPC