Tagged articles
3 articles
Page 1 of 1
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 ShutdownJVMLinux signals
0 likes · 5 min read
How to Implement Graceful Restart of the JVM
ITPUB
ITPUB
Jul 26, 2019 · Backend Development

How to Gracefully Handle Kill Signals in Java Backend Processes

On Linux, this guide shows how to locate and terminate a Java background process using ps and kill, then explains why force‑killing can leave resources open, and provides a complete Java SignalHandler implementation to receive termination signals, safely close files, database connections, and Kafka consumers.

KafkaKill SignalLinux
0 likes · 8 min read
How to Gracefully Handle Kill Signals in Java Backend Processes