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 · 4 comments
Closed

How to set max heap for Kibana? #1924

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

Comments

@ppf2
Copy link
Member

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

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

JAVA_OPTS="-Xmx1G"

@nerophon
Copy link
Contributor

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

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

@Zhang21
Copy link

Zhang21 commented Jan 27, 2021

on centos7:

vim /etc/default/kibana

# 4G
NODE_OPTIONS="--max-old-space-size=4096"


# restart kibana
systemctl restart kibana

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants