log: adding –max_old_space_size warn

This commit is contained in:
italo jose
2025-03-20 12:32:03 -03:00
committed by Italo José
parent 75bdcd058c
commit d98cf02a3d

View File

@@ -413,7 +413,7 @@ function startInspectorProfiling(name: string): boolean {
// Adjust the heap limit to avoid OOM
if (process.env.NODE_OPTIONS && !process.env.NODE_OPTIONS.includes('--max-old-space-size')) {
process.stdout.write('[PROFILING_START] WARN: Recommended to set NODE_OPTIONS="--max-old-space-size=4096" to avoid OOM\n');
process.stdout.write('[PROFILING_START] WARN: Recommended to set TOOL_NODE_FLAGS="max_old_space_size=4096" to avoid OOM\n');
}
profileStartTime = Date.now();