Skip to content
Back to skills

Emergency Ulimit Mitigation

BSecurity

Emergency steps to mitigate ulimit-related crashes by increasing file descriptor limits and restarting services.

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 8, 2026
toolsbashdocker

Security analysis

B88/100
  • criticalModifies startup scripts or system services for persistence

Pro shows the line behind each finding and how to fix it

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill emergency-ulimit-mitigation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Emergency Ulimit Mitigation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Emergency Ulimit Mitigation
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-emergency-ulimit-mitigation/badge)](https://www.skillsdirectory.com/skills/majiayu000-emergency-ulimit-mitigation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: emergency-ulimit-mitigation
description: Emergency steps to mitigate ulimit-related crashes by increasing file descriptor limits and restarting services.
---

qqu='qq "`cat ~/d/AI/Prompts/Commands/fix-ulimit-exceeded.md`"'# Emergency `ulimit` Mitigation

**Tags:** AI/Prompt, ulimit, filedescriptors, crashing, toomanyfilesopen, Stability, Maintenance  
**Modified:** 2025-10-27T08:55:02-04:00

## Immediate Emergency Fix

```bash
# Instant relief - run immediately when services are crashing
ulimit -n 65536
echo 2097152 | sudo tee /proc/sys/fs/file-max
```

## Emergency Service Recovery

```bash
# Restart crashed services
sudo systemctl restart docker traefik
sudo docker system prune -f
```

## Check Current Status

```bash
# See what's using FDs
lsof | wc -l
cat /proc/sys/fs/file-nr | awk '{printf "FDs: %d/%d (%.1f%%)\n", $1, $3, ($1/$3)*100}'
```

## Deploy Full Solution

```bash
sudo ./scripts/set-ulimits.sh
sudo systemctl enable --now fd-monitor.timer
```

## Emergency Cleanup

```bash
./scripts/fd-cleanup.sh
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.