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

Closed
ppf2 opened this issue Nov 13, 2014 · 3 comments
Closed

How to set max heap for Kibana? #1924

ppf2 opened this issue Nov 13, 2014 · 3 comments
Assignees

Comments

@ppf2
Copy link
Member

@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:

image

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

image

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
@rashidkpc
Copy link
Contributor

@rashidkpc rashidkpc commented Nov 18, 2014

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

JAVA_OPTS="-Xmx1G"

@rashidkpc rashidkpc closed this Nov 18, 2014
@nerophon
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:

NODE_OPTIONS="--max-old-space-size=4096"

The example above sets memory use to 4GB.

@CamiloSierraH
Copy link

@CamiloSierraH CamiloSierraH commented Jun 22, 2018

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

 NODE_OPTIONS="--max_old_space_size=4096"

You can see more details about this change on Node.js, here:
nodejs/node#16999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
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.