zombie-killer

Detect zombie processes on a VPS and reap them by terminating parent processes.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Dunc4nJ/agent-skills --skill zombie-killer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: zombie-killer
Source: https://github.com/Dunc4nJ/agent-skills/tree/main/skills/zombie-killer
Command: npx skills add https://github.com/Dunc4nJ/agent-skills --skill zombie-killer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Detects zombie (defunct) processes on a VPS and reaps them by terminating their parent processes, helping free PID table entries and improve responsiveness.

Core Features & Use Cases

  • Scan for zombie processes and identify their parent processes to understand what's holding zombies.
  • Kill parent processes holding zombies to reap the zombies, skipping init/systemd and avoiding the tool's own process tree.
  • Install cron-based monitoring to automatically detect zombies and generate alerts when thresholds are exceeded.

Quick Start

Run zombie-killer.sh scan to detect zombies, then run zombie-killer.sh kill to reap them, or install cron monitoring with zombie-killer.sh install-cron.

Frequently Asked Questions about zombie-killer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find and kill zombie processes on my VPS?

To find and kill zombie processes on a VPS, run a scan to detect defunct processes via the ps command, then terminate their parent processes to reap them and free PID table entries.

Why do defunct processes stay on my server and cause high load averages?

Defunct processes stay on your server because their parent process has not read their exit status, leaving them as zombies that consume PID table entries and can contribute to high load averages.

Can I automate zombie process detection with cron?

Yes, you can automate zombie process detection with cron by installing a scheduled monitoring workflow that scans for defunct processes and generates alert logs when a configurable threshold is exceeded.

Does killing zombie parent processes affect init or systemd?

No, reaping zombie processes by terminating their parent processes skips init and systemd, and it avoids killing the tool's own process tree to ensure safe server maintenance.

What is the best way to clear stale agent sessions causing defunct processes?

The best way to clear stale agent sessions causing defunct processes is to scan with ps to identify the holding parents and reap the zombies by terminating those specific non-init parent processes.