Skip to content

Commit 0fcaaed

Browse files
Mbd06bclaude
andcommitted
fix: reduce Jest heap to 2560MB to avoid container OOMKill
--max-old-space-size applies per Node process. With 2 workers + parent, 6144MB × 3 = 18GB potential heap vs 8Gi container limit → OOMKilled. 2560MB × 3 = ~7.5GB fits within the 8Gi limit. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 22ef345 commit 0fcaaed

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ spec:
179179
dir('sophia') {
180180
sh '''#!/bin/bash
181181
set -euo pipefail
182-
export NODE_OPTIONS="--max-old-space-size=6144"
182+
# 2560MB per process × 3 (parent + 2 workers) fits in 8Gi container
183+
export NODE_OPTIONS="--max-old-space-size=2560"
183184
pnpm exec jest --ci --coverage --maxWorkers=2
184185
'''
185186
}

0 commit comments

Comments
 (0)