openclaw-test-heap-leaks

Diagnose memory growth and heap leaks in OpenClaw test suites.

1.0k|59|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/SafeAI-Lab-X/ClawKeeper --skill openclaw-test-heap-leaks-safeai-lab-x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openclaw-test-heap-leaks
Source: https://github.com/SafeAI-Lab-X/ClawKeeper/tree/main/legacy/clawkeeper-watcher/.agents/skills/openclaw-test-heap-leaks
Command: npx skills add https://github.com/SafeAI-Lab-X/ClawKeeper --skill openclaw-test-heap-leaks-safeai-lab-x

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill helps software engineers investigate and diagnose memory growth and OOM risks in OpenClaw test suites by guiding memory profiling with heap snapshots.

Core Features & Use Cases

  • Heap-snapshot analysis: Compare before/after memory footprints to identify retained objects and leaks.
  • Automated delta reporting: Generate concise deltas to prioritize fixes across test runs.
  • Use Case: When test runs show escalating RSS or worker memory, use this skill to surface the largest contributors and suggest cleanup paths.

Quick Start

Run the heap-leaks workflow to reproduce, snapshot, and compare memory footprints using the provided scripts.

Frequently Asked Questions about openclaw-test-heap-leaks

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

FAQPage Schema
How do I diagnose memory leaks and escalating RSS in Node.js test suites?

Diagnose memory leaks in Node.js test suites by collecting and comparing heap snapshots before and after test runs to identify retained objects. The provided delta reporting scripts summarize memory footprints to pinpoint the largest contributors causing escalating RSS.

What is the best way to compare heap snapshots across repeated test runs?

The best way to compare heap snapshots across repeated test runs is using automated delta reporting. This process generates concise memory footprint deltas, allowing you to quickly prioritize fixes by surfacing the largest retained object contributors between each run.

Can I use heap snapshot tooling to investigate OOM risks in multi-worker test pipelines?

Yes, you can use heap snapshot tooling to investigate OOM risks in multi-worker test pipelines. The diagnostic workflow applies to both Linux and Windows environments, guiding memory profiling to surface worker memory growth and identify cleanup paths.

Why does worker memory growth happen during OpenClaw test runs?

Worker memory growth during OpenClaw test runs happens when objects are retained across repeated test executions. By applying heap snapshot analysis, you can identify these specific retained objects, understand the memory growth patterns, and follow provided guidance for fixes.

Do I need specific scripts to analyze heap leaks in my test pipeline?

Yes, you need the included heap snapshot tooling scripts to analyze heap leaks in your test pipeline. The workflow requires these specific scripts to reproduce memory issues, collect snapshots, and compare footprints to successfully identify retained objects and leaks.

How to surface the largest memory contributors causing OOMs in test suites?

To surface the largest memory contributors causing OOMs in test suites, run the heap-leaks workflow to reproduce and snapshot memory footprints. The automated delta reporting compares these snapshots to prioritize fixes and suggest cleanup paths for the identified leaks.