openclaw-test-heap-leaks

Analyze OpenClaw test heap snapshots to identify memory leaks and RSS spikes.

Updated Dec 6, 2016
One-click install
npx skills add https://github.com/majunbao/learn --skill openclaw-test-heap-leaks-majunbao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openclaw-test-heap-leaks
Source: https://github.com/majunbao/learn/tree/main/openclaw_tags/openclaw-2026.4.24/.agents/skills/openclaw-test-heap-leaks
Command: npx skills add https://github.com/majunbao/learn --skill openclaw-test-heap-leaks-majunbao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Investigate OpenClaw pnpm test memory growth, Vitest OOMs, RSS spikes, and heap snapshot deltas to triage leaks and performance issues in CI workflows.

Core Features & Use Cases

  • Heap snapshot comparison across lanes and PIDs to surface dominant growth patterns
  • Automated delta reporting via heapsnapshot-delta.mjs for quick triage
  • Reproducible workflow for CI and local debugging of memory issues

Quick Start

Run the provided heapsnapshot-delta.mjs tool to compare two heap snapshots and surface the top growth entries.

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 compare heap snapshots to find memory leaks in Vitest?

Compare heap snapshots in Vitest by running the heapsnapshot-delta.mjs script to parse Chrome heap snapshots and report top memory growth deltas for triage.

Why does pnpm test memory growth cause out of memory errors in CI?

pnpm test memory growth causes OOM errors due to heap leaks and RSS spikes. Analyzing repeated heap snapshots across PIDs in CI workflows surfaces dominant growth patterns for targeted fixes.

Can I use this to triage RSS spikes and heap leaks locally?

Yes, you can diagnose RSS spikes and heap leaks locally. The workflow compares repeated heap snapshots across lanes and PIDs in both local development and CI environments.

What is the best way to analyze Chrome heap snapshot deltas for OpenClaw tests?

The best way to analyze Chrome heap snapshot deltas for OpenClaw tests is using the dedicated heapsnapshot-delta.mjs tool to compare snapshots and surface top growth entries for quick triage.

How do I identify dominant memory growth patterns across different test lanes?

Identify dominant memory growth patterns by comparing heap snapshots across different test lanes and PIDs. This surfaces dominant growth entries to enable targeted leak fixes.