Tag

SignalHandler

0 views collected around this technical thread.

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
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