Find what is causing OOMKilled dealbot workers

Open
#765 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@SgtPooki is already working on this.

Since Nov 10, 2026.

  • #768 by @SgtPooki — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
typescript

Research direction

The issue names no file yet; the allocating path is unknown and the work is to find it. Start with the pull-check timeout path and the overlapping deal work it may share with, then add the 1-second memory sampling the issue describes across main and worker threads. Done means a captured spike is traced to a specific allocating path and a fix is verified to stop that OOM source.

Written by the indexing model from the issue text.

Description

43 worker OOM kills are visible in total on staging and prod. Kernel logs verify 15 of them (12 staging, 3 prod) as 2 GiB container-limit OOMs, dominated by anonymous process memory. The allocating code path remains unknown. Kernel evidence.

Key evidence

  • 14 of the 15 verified kills occurred 3.2–4.2 seconds after a 300-second pull-check timeout on the same pod. Most timeouts do not cause a kill, so this is a lead, not proof of causation.
  • Current sampling misses the spike: the latest staging kill had a reading of about 190 MiB within 30 seconds of reaching the limit.
  • Anonymous memory could be JS heap, Buffers, or native allocations.

Next steps

  1. Add temporary memory sampling at 1 second or finer, recording active jobs, process RSS, heap, and external/Buffer memory across main and worker threads.
  2. Capture a spike and identify the allocating path. Start with the pull-check timeout path and overlapping deal work.
  3. Fix the cause and verify that it prevents OOM kills from that source.
Dominant language
TypeScript
Stars
2
Forks
9
Avg merge
5d 6h
Merged PRs (30d)
9

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FilOzone/dealbot

All issues in FilOzone/dealbot

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.