-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[DOCS] Document how to increase heap memory limit for Kibana #18944
Comments
We don’t recommend increasing the node heap size, at least anymore. Can you provide details on specific scenarios where that is necessary (including exact Kibana version numbers)? |
@epixa I do not have a report of a specific issue where this was really needed, but has been asked by users several times (usually for false alarms, e.g. ES issues propagating as slow or failing responses to Kibana) and there isn't a source of documentation to point at. If our answer is that we don't recommend modifying it, we should document that it is not recommended & provide a brief justification for it. I am not sure if someone else has real examples to share where raising the heap limit was necessary. |
Brain dump: /etc/default/kibana In the older days node's garbage collection was less aggressive so in some cases we actually recommended limiting max-old-space-size to 512m. There was also some strange memory that we were never able to pinpoint but bounding it did seem to help. These are both gone in new versions More recently we ran into memory issues in development with the webpack bundling process, and recommended bumping it (for development). This has been fixed.
What Court said^ all supported versions of Kibana (5.6+) shouldn't need to worry about it. I'd love data points if there's issues happening but we should treat them as bugs first and memory limits second. Here's our loaded demo server running at less than 200mb, http://demo.elastic.co/status. My server's monthly uptimes without x-pack and is sitting at 68mb. kostasb do you know where the recommendation is coming from? Is this older versions that need to set it, or historical reasons? |
I'm not against documenting the NODE_OPTIONS env variable, there's probably some other useful options. Sorry about the wall of text, tldr is I want to fix bugs if there are any. |
@jbudz I have asked around but didn't get any actual valid cases in recent versions (v5 and v6) in which increasing However the question "how can I increase heap for Kibana" does come in once in a while, typically as a "let's give it more memory" reaction or proactively during setup, and there have been no official guidelines/recommendations about, or advice against, modifying defaults. |
Cool, thanks for the info. |
Discussed at standup. We'll document memory (explicit) expectations. |
Hi , In my case , the default is 1.4G. How can I increase the memory size for kibana? or make kibana to handle more connections. |
Closing in favor of #9006 |
Kibana version: v5.x/v6.x
Description:
How to increase Kibana's heap size limit is a common question from users who have been experiencing issues with memory pressure. Due to the frequency of the question and no publicly recommended approach until now (except for sparse references in various discuss/GH issues), this should be documented.
To the best of my knowledge the max-old-space-size option sets the heap limit in node.
This option can be set as an env variable in /etc/default/kibana
which is then passed to the node executable in /usr/share/kibana/bin/kibana:
which is the script started by the systemd unit file.
Alternatively, if Kibana is started from command line as a node executable:
Related issues referencing this topic:
#1924
#9006
cc @jaijhala @nephel @nerophon for visibility.
The text was updated successfully, but these errors were encountered: