Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set max heap for Kibana? #1924

ppf2 opened this issue Nov 13, 2014 · 3 comments

How to set max heap for Kibana? #1924

ppf2 opened this issue Nov 13, 2014 · 3 comments


Copy link

@ppf2 ppf2 commented Nov 13, 2014

Looks like the Windows .bat file does not have a -Xmx set (the Linux version of the script does).

When attempting to set this in the .bat:


While Java accepts the -Xms and -Xms settings, Jruby doesn't like it and throws an exception:


What is the right way to set additional Java options for the Windows implementation?

@rashidkpc rashidkpc changed the title How to set max heap on Windows for Kibana? How to set max heap for Kibana? Nov 17, 2014
@rashidkpc rashidkpc self-assigned this Nov 18, 2014
@rashidkpc rashidkpc added the question label Nov 18, 2014
Copy link

@rashidkpc rashidkpc commented Nov 18, 2014

This is not specific to Windows, todo this you can set the JAVA_OPTS environmental variable, eg:


@rashidkpc rashidkpc closed this Nov 18, 2014
Copy link

@nerophon nerophon commented Jun 28, 2017

The above comment may be somewhat misleading. Although it is true that JAVA_OPTS controls heap size, this is the case for Java programs using the JVM. Kibana is written in Node.js and therefore this does not apply to it. The way to set memory use in Node.js (as of now) is to use the following environment variable:


The example above sets memory use to 4GB.

Copy link

@CamiloSierraH CamiloSierraH commented Jun 22, 2018

If you are using the latest versions of Kibana, this setting change. the new one is:


You can see more details about this change on Node.js, here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.