Limit worker pool size (#185164)

Fixes #185079

Should fix OOM issues on build machines
This commit is contained in:
Matt Bierner 2023-06-14 14:57:22 -07:00 committed by GitHub
parent e3f0f4a875
commit aa82bd59b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -360,7 +360,7 @@ class Mangler {
this.config = config;
this.service = ts.createLanguageService(new staticLanguageServiceHost_1.StaticLanguageServiceHost(projectPath));
this.renameWorkerPool = workerpool.pool(path.join(__dirname, 'renameWorker.js'), {
maxWorkers: 2,
maxWorkers: 1,
minWorkers: 'max'
});
}

View File

@ -416,7 +416,7 @@ export class Mangler {
this.service = ts.createLanguageService(new StaticLanguageServiceHost(projectPath));
this.renameWorkerPool = workerpool.pool(path.join(__dirname, 'renameWorker.js'), {
maxWorkers: 2,
maxWorkers: 1,
minWorkers: 'max'
});
}