We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ab980a commit 5ec653fCopy full SHA for 5ec653f
packages/kbn-es/src/cluster.js
@@ -275,6 +275,15 @@ exports.Cluster = class Cluster {
275
276
this._log.debug('%s %s', ES_BIN, args.join(' '));
277
278
+ options.esEnvVars = options.esEnvVars || {};
279
+
280
+ // ES now automatically sets heap size to 50% of the machine's available memory
281
+ // so we need to set it to a smaller size for local dev and CI
282
+ // especially because we currently run many instances of ES on the same machine during CI
283
+ options.esEnvVars.ES_JAVA_OPTS =
284
+ (options.esEnvVars.ES_JAVA_OPTS ? `${options.esEnvVars.ES_JAVA_OPTS} ` : '') +
285
+ '-Xms1g -Xmx1g';
286
287
this._process = execa(ES_BIN, args, {
288
cwd: installPath,
289
env: {
0 commit comments