Tag

GracefulShutdown

1 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
Sep 10, 2024 · Backend Development

Graceful Shutdown in Spring Boot: Mechanisms, Code Samples, and Configuration

This article explains how Spring Boot handles graceful shutdown in Kubernetes, manual Actuator shutdown, SIGTERM handling, Tomcat graceful termination, and Logback log flushing, providing detailed code examples, configuration snippets, and the underlying shutdown hook mechanisms that ensure resources are released cleanly.

GracefulShutdownJavaLogback
0 likes · 18 min read
Graceful Shutdown in Spring Boot: Mechanisms, Code Samples, and Configuration
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 18, 2024 · Backend Development

Master SpringBoot 2.7: Access Params, Banner, Converters, and Graceful Shutdown

This tutorial demonstrates how to retrieve custom application parameters, inject and print the banner, use ConversionService for type conversion, access servlet‑related beans, work with MessageSource for i18n, publish events, and gracefully shut down a SpringBoot 2.7 application.

ApplicationArgumentsBannerConversionService
0 likes · 8 min read
Master SpringBoot 2.7: Access Params, Banner, Converters, and Graceful Shutdown
Cognitive Technology Team
Cognitive Technology Team
Jun 10, 2024 · Backend Development

Gracefully Shutting Down a Thread Pool in Java

To gracefully shut down a Java thread pool, use ExecutorService's shutdown() to reject new tasks, awaitTermination() to wait for running tasks with optional timeout, handle exceptions, and optionally invoke shutdownNow() for forced termination, as illustrated by code examples from Dubbo3 and RocketMQ.

ConcurrencyExecutorServiceGracefulShutdown
0 likes · 4 min read
Gracefully Shutting Down a Thread Pool in Java
Cognitive Technology Team
Cognitive Technology Team
Oct 28, 2023 · Backend Development

Understanding ThreadPoolExecutor: Parameters, Lifecycle, Graceful Shutdown, Pitfalls, and Monitoring

This article explains ThreadPoolExecutor's configuration parameters, creation and execution flow, state management, graceful shutdown techniques, common pitfalls such as OOM and ThreadLocal issues, and provides monitoring alerts and sample Java code for robust thread‑pool handling.

DubboGracefulShutdownJavaConcurrency
0 likes · 7 min read
Understanding ThreadPoolExecutor: Parameters, Lifecycle, Graceful Shutdown, Pitfalls, and Monitoring
Zhuanzhuan Tech
Zhuanzhuan Tech
Jul 14, 2023 · Operations

JVM Shutdown Methods, ShutdownHook, SignalHandler, and Graceful Shutdown Practices

The article explains the three JVM shutdown approaches—normal, forced, and abnormal—details how to use ShutdownHook and custom SignalHandler for handling termination signals, outlines best practices for graceful shutdown, and provides example scripts and references.

GracefulShutdownJVMJava
0 likes · 6 min read
JVM Shutdown Methods, ShutdownHook, SignalHandler, and Graceful Shutdown Practices
政采云技术
政采云技术
Feb 16, 2023 · Backend Development

Graceful Shutdown Support in Spring Boot 2.3+ for Embedded Web Servers

Since Spring Boot 2.3.0.RELEASE, graceful shutdown is supported for all embedded web servers (Jetty, Reactor Netty, Tomcat, Undertow) and both reactive and servlet‑based applications, using SmartLifecycle beans, configurable timeouts, and a JVM shutdown hook to allow in‑flight requests to finish while refusing new ones.

EmbeddedWebServerGracefulShutdownJava
0 likes · 10 min read
Graceful Shutdown Support in Spring Boot 2.3+ for Embedded Web Servers
Java Architect Essentials
Java Architect Essentials
Sep 14, 2021 · Operations

Graceful Service Startup and Shutdown for Microservices with Spring Boot and Docker

This article explains how to implement graceful shutdown and startup for microservices using JVM shutdown hooks, Spring Boot's built‑in mechanisms, Docker stop signals, and external containers like Jetty, providing code examples and best‑practice recommendations for ensuring services deregister, reject traffic, and start only after health checks succeed.

DockerGracefulShutdownMicroservices
0 likes · 10 min read
Graceful Service Startup and Shutdown for Microservices with Spring Boot and Docker
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Apr 27, 2021 · Backend Development

Understanding Java ShutdownHook: Usage, Implementation, and Internals

This article explains how to add and use Java's ShutdownHook, details its internal data structures and execution order, describes system‑level and application‑level hooks, outlines the trigger points such as Runtime.exit and signal handling, and provides code examples for implementing graceful shutdowns.

GracefulShutdownJVMJava
0 likes · 8 min read
Understanding Java ShutdownHook: Usage, Implementation, and Internals