mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
This commit is contained in:
parent
2ab980a9b6
commit
5ec653f170
1 changed files with 9 additions and 0 deletions
|
@ -275,6 +275,15 @@ exports.Cluster = class Cluster {
|
|||
|
||||
this._log.debug('%s %s', ES_BIN, args.join(' '));
|
||||
|
||||
options.esEnvVars = options.esEnvVars || {};
|
||||
|
||||
// ES now automatically sets heap size to 50% of the machine's available memory
|
||||
// so we need to set it to a smaller size for local dev and CI
|
||||
// especially because we currently run many instances of ES on the same machine during CI
|
||||
options.esEnvVars.ES_JAVA_OPTS =
|
||||
(options.esEnvVars.ES_JAVA_OPTS ? `${options.esEnvVars.ES_JAVA_OPTS} ` : '') +
|
||||
'-Xms1g -Xmx1g';
|
||||
|
||||
this._process = execa(ES_BIN, args, {
|
||||
cwd: installPath,
|
||||
env: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue