← Back to list
01Issue
BugShippedSwamp CLIPublicTeam
Assigneesstack72
Relationships
#1030 swamp serve crashes with JavaScript heap OOM while running scheduled workflows
Opened by evrardjp · 7/8/2026· Shipped 7/8/2026
Summary
swamp serve -v crashed after ~3m17s with a fatal JavaScript heap out-of-memory while scheduled workflows were running. The process reached ~4 GB old-space and dumped core.
Environment
- Swamp:
20260708.012813.0-sha.0f7166fe - OS:
Linux laptop-tlaas-framework 7.0.11-200.fc44.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 1 22:50:37 UTC 2026 x86_64 GNU/Linux - Repository: local-infra
- Command:
time swamp serve -v - Auth mode: default/none (warning emitted)
What happened
The server initialized, loaded the policy snapshot, registered 7 scheduled workflows, began firing scheduled runs at minute boundaries, then crashed with V8 heap exhaustion.
Relevant timeline:
12:09:05.047 warning serve auth-mode is none — deprecated
12:09:05.048 info serve Initializing repository at /var/home/evrardjp/git/evrardjp/local-infra
12:09:05.093 info swamp·domain·access·policy-snapshot Loaded policy snapshot: 0 active grant(s), 0 group(s)
12:09:34.764 info scheduled-execution Scheduled execution service started with 7 schedules
12:09:34.765 info serve WebSocket API server listening on ws://127.0.0.1:9090
12:10:00.002 info serve Running scheduled workflow REDACTED2
12:10:00.004 info serve Running scheduled workflow cluster-pool-sync
12:10:00.004 info serve Running scheduled workflow github-project-stale-classification-daily
12:10:00.094 info datastore·lock Acquiring lock for data/@evrardjp/REDACTED/c0f6776b-8c31-44c4-92cd-967180a2c6e1/.lock#91ef498d
12:10:59.112 info serve Scheduled workflow REDACTED2 completed (run: 214dbc92-6fd3-41ae-9a84-333bd7872c68)
12:10:59.414 info serve Scheduled workflow cluster-pool-sync completed (run: 6a3695ed-3b63-4070-99c2-62c6d6c8f0a6)
12:11:00.002 info serve Running scheduled workflow REDACTED2
12:11:00.003 info scheduled-execution Firing scheduled run for workflow REDACTED2Immediately after the 12:11 scheduled run fired:
<--- Last few GCs --->
[245115:0x55cdc08c8000] 189054 ms: Mark-Compact (reduce) 4082.5 (4099.6) -> 4082.5 (4099.6) MB, pooled: 0.0 MB, 451.57 / 0.00 ms (average mu = 0.003, current mu = 0.000) last resort; GC in old space requested
[245115:0x55cdc08c8000] 189498 ms: Mark-Compact (reduce) 4082.5 (4099.6) -> 4082.5 (4099.6) MB, pooled: 0.0 MB, 443.31 / 0.00 ms (average mu = 0.002, current mu = 0.000) last resort; GC in old space requested
#
# Fatal JavaScript out of memory: Reached heap limit
#
==== C stack trace ===============================
swamp(+0x23efc5e) [0x55cda6065c5e]
swamp(+0x23eec7b) [0x55cda6064c7b]
swamp(+0x23f0ec8) [0x55cda6066ec8]
swamp(+0x249fb75) [0x55cda6115b75]
swamp(+0x2656487) [0x55cda62cc487]
swamp(+0x2655bb4) [0x55cda62cbbb4]
swamp(+0x265537d) [0x55cda62cb37d]
swamp(+0x2648d9b) [0x55cda62bed9b]
swamp(+0x264873c) [0x55cda62be73c]
swamp(+0x2626f6c) [0x55cda629cf6c]
swamp(+0x261d471) [0x55cda6293471]
swamp(+0x262aa60) [0x55cda62a0a60]
swamp(+0x24b1654) [0x55cda6127654]
swamp(+0x4f35115) [0x55cda8bab115]
[0x7fb787dcfdda]
Trace/breakpoint trap (core dumped) swamp serve -v
real 3m17.500s
user 2m7.959s
sys 0m24.187sExpected behavior
swamp serve should remain running, or fail a single scheduled workflow gracefully, rather than growing to the V8 heap limit and crashing the server process.
Notes
- The crash happened while scheduled execution was enabled and multiple workflows fired at the same minute boundary.
- One workflow (
REDACTED2) runs every minute and appears to have overlapped with/started again shortly after the previous scheduled work completed. - Several lock acquisition lines targeted the same redacted model data directory before the crash.
02Bog Flow
Shipped
Click a lifecycle step above to view its details.
03Sludge Pulse