Find what is causing OOMKilled dealbot workers

Aperta
#765 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@SgtPooki ci sta già lavorando.

Dal 10/11/2026.

  • #768 di @SgtPooki — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
2
Fork
9
Merge medio
5g 6h
PR unite (30g)
9

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FilOzone/dealbot

Tutte le issue di FilOzone/dealbot

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.