-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Limit memory overhead #6822
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
Limit memory overhead #6822
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ | |
| * <<enabling-ssl, Enabling SSL>> | ||
| * <<controlling-access, Controlling Access>> | ||
| * <<load-balancing, Load Balancing Across Multiple Elasticsearch Nodes>> | ||
| * <<memory-management, Memory management>> | ||
|
|
||
| How you deploy Kibana largely depends on your use case. If you are the only user, | ||
| you can run Kibana on your local machine and configure it to point to whatever | ||
|
|
@@ -132,3 +133,10 @@ cluster.name: "my_cluster" | |
| # The Elasticsearch instance to use for all your queries. | ||
| elasticsearch_url: "http://localhost:9200" | ||
| -------- | ||
|
|
||
| [float] | ||
| [[memory-management]] | ||
|
|
||
| === Memory management | ||
|
|
||
| Kibana is built on Node.js which doesn't tune its heap size based on the amount of memory available. To combat this, we set defaults based on the requirements of Kibana needs, while allowing overhead for additional plugins. These defaults can be overridden at runtime, for example `NODE_OPTIONS="--max-old-space-size=512" bin/kibana`. | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ All you need is: | |
|
|
||
| * Elasticsearch {esversion} | ||
| * A modern web browser - http://www.elastic.co/subscriptions/matrix#matrix_browsers[Supported Browsers]. | ||
| * 512 MB of available RAM | ||
|
||
| * Information about your Elasticsearch installation: | ||
| ** URL of the Elasticsearch instance you want to connect to. | ||
| ** Which Elasticsearch indices you want to search. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,13 +25,18 @@ module.exports = function (grunt) { | |
| return flags; | ||
| }, []); | ||
|
|
||
| const devEnv = Object.assign(process.env, { | ||
| NODE_OPTIONS: '--max-old-space-size=1024' | ||
|
||
| }); | ||
|
|
||
| return { | ||
| testServer: { | ||
| options: { | ||
| wait: false, | ||
| ready: /Server running/, | ||
| quiet: false, | ||
| failOnError: false | ||
| failOnError: false, | ||
| env: devEnv | ||
| }, | ||
| cmd: binScript, | ||
| args: [ | ||
|
|
@@ -46,7 +51,8 @@ module.exports = function (grunt) { | |
| wait: false, | ||
| ready: /Server running/, | ||
| quiet: false, | ||
| failOnError: false | ||
| failOnError: false, | ||
| env: devEnv | ||
| }, | ||
| cmd: binScript, | ||
| args: [ | ||
|
|
@@ -64,7 +70,8 @@ module.exports = function (grunt) { | |
| wait: false, | ||
| ready: /Server running/, | ||
| quiet: false, | ||
| failOnError: false | ||
| failOnError: false, | ||
| env: devEnv | ||
| }, | ||
| cmd: binScript, | ||
| args: [ | ||
|
|
@@ -80,7 +87,8 @@ module.exports = function (grunt) { | |
| wait: false, | ||
| ready: /Server running/, | ||
| quiet: false, | ||
| failOnError: false | ||
| failOnError: false, | ||
| env: devEnv | ||
| }, | ||
| cmd: binScript, | ||
| args: [ | ||
|
|
@@ -148,7 +156,8 @@ module.exports = function (grunt) { | |
| options: { | ||
| wait: false, | ||
| ready: /Optimization .+ complete/, | ||
| quiet: true | ||
| quiet: false, | ||
| env: devEnv | ||
| }, | ||
| cmd: './build/kibana/bin/kibana', | ||
| args: [ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
512 here? I assume this is because some amount of memory will of course be used that isn't old space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is correct, it's just a recommendation. We could probably run on lower, but we do have things which are not old space.