mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Code]: remove hard code node heapsize (#38304)
This commit is contained in:
parent
29e7d63db9
commit
3b099c6359
1 changed files with 5 additions and 9 deletions
|
@ -43,15 +43,11 @@ export class TypescriptServerLauncher extends AbstractLauncher {
|
|||
});
|
||||
}
|
||||
async spawnProcess(installationPath: string, port: number, log: Logger): Promise<ChildProcess> {
|
||||
const p = spawn(
|
||||
process.execPath,
|
||||
['--max_old_space_size=4096', installationPath, '-p', port.toString(), '-c', '1'],
|
||||
{
|
||||
detached: false,
|
||||
stdio: 'pipe',
|
||||
cwd: resolve(installationPath, '../..'),
|
||||
}
|
||||
);
|
||||
const p = spawn(process.execPath, [installationPath, '-p', port.toString(), '-c', '1'], {
|
||||
detached: false,
|
||||
stdio: 'pipe',
|
||||
cwd: resolve(installationPath, '../..'),
|
||||
});
|
||||
p.stdout.on('data', data => {
|
||||
log.stdout(data.toString());
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue