What problem does it solve?
Leaked camoufox-bin (anti-fingerprint Firefox) processes accumulate over time and exhaust system memory, causing repeated OOM crashes. This Skill acts as a safety net that periodically inspects running camoufox-bin processes, alerts when counts exceed thresholds, and terminates aged orphan processes before they crash the machine.
Core Features & Use Cases
- Process Count Monitoring: Counts running camoufox-bin processes and reports OK status or warnings when the configurable threshold (default 6) is exceeded.
- Orphan Process Cleanup: When the hard limit (default 12) is exceeded, kills the oldest orphaned processes older than 30 minutes, protecting active browser tasks.
- Configurable Thresholds: All limits (warning threshold, hard limit, orphan age) can be overridden via environment variables.
- Use Case: An IT engineer heartbeat job runs the guard script every cycle; when a browser daemon bug leaks camoufox-bin processes, the guard automatically cleans up orphans and suggests restarting the gateway if cleanup is insufficient.
Quick Start
Run the camoufox-guard script to check current camoufox-bin process counts and clean up any orphaned browser processes exceeding the limits.