Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

profile-worker-memory

Skill by activepieces

Diagnoses an Activepieces worker that grows in memory or gets OOM-killed. It separates JS heap leaks from native growth and traces a heap snapshot back to the code holding the memory. Written for self-hosters and maintainers.

  • Score 85
  • 26k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install profile-worker-memory

Built from the published package, never by AI.

git clone --depth 1 https://github.com/activepieces/activepieces /tmp/activepieces && mkdir -p ~/.claude/skills && cp -r /tmp/activepieces/.agents/skills/profile-worker-memory ~/.claude/skills/profile-worker-memory

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install profile-worker-memory in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill walks through diagnosing an Activepieces worker that grows in memory or is OOM-killed. It separates a JS heap leak from native memory growth by comparing the pm2 heap size with RSS. It then takes a V8 heap snapshot of the live worker in place, and the snapshot stays on the host. Only aggregate histograms and retainer paths are used from it.

The procedure raises the container memory limit during the snapshot and restores it afterwards. It parses the snapshot in a separate container, then follows the retainer path back to the code that holds the memory. Findings are redacted before sharing. It is written for self-hosters and maintainers who see memory tied to pod age, restarting workers, or containers near their limit.

Written from the project's SKILL.md and checked against it.

What it can do

  • Confirm OOM killsChecks OOMKilled state, restart count, pm2 crash count and dmesg output for the worker.
  • Heap or native checkCompares pm2 Used Heap Size with RSS to tell a JS heap leak from native growth.
  • In-place heap snapshotOpens the V8 inspector with SIGUSR1 and takes a heap snapshot of the live worker.
  • Module residency probeUses one small Runtime.evaluate call to count resident modules without risking an OOM.
  • Offline snapshot parsingParses the snapshot in a separate container and sums self size by constructor.
  • Retainer path tracingWalks parent edges back from a large object to the code that holds it.
  • Findings redactionReplaces flow version IDs and step data with placeholders before findings are shared.
  • CleanupRemoves the snapshot and helper scripts and restores the original cgroup limits.

What you need

  • Docker
  • SSH access to the worker host
  • Activepieces worker container running under pm2
  • Node.js inside the worker image

Try asking

  • Help me find out whether this worker's memory growth is a JS heap leak.
  • Walk me through taking a heap snapshot of a live Activepieces worker.
  • Trace the retainer path for the largest objects in this heap snapshot.

Good to know

  • A heap of about 950 MB can kill the process mid-serialization.
  • Node's global WebSocket cannot reach the V8 inspector, so the bundled ws module is used.
  • A delay step over 10 seconds pauses the run and releases the sandbox.
  • Snapshot output still contains real identifiers and must be redacted before sharing.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/profile-worker-memory/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB

Alternatives to profile-worker-memory

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

profile-worker-memory: common questions

Does this skill upload heap snapshots anywhere?

No. The source says the snapshot stays on the worker host and only an aggregate histogram leaves it. It says never to ask anyone to upload one.

When should I use this skill?

The source says to use it when a self-hoster reports memory tied to pod age, workers restarting on their own, or a container near its memory limit.

How does it tell a JS heap leak from native growth?

It compares the pm2 Used Heap Size with RSS. If RSS grows while heap stays flat, the source says the growth is native and a heap snapshot will show nothing.

How do I install profile-worker-memory?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is profile-worker-memory free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is profile-worker-memory safe to use?

It scores 85 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to profile-worker-memory?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

profile-worker-memory Install

Add to stack

Loading.