Conversation
|
I am going to build and deploy this to DigitalOcean to get a definitive idea of what the usage is. But for now, let's discuss the language used in the documentation and the method for setting the default. |
37fc9b8 to
0888ec7
Compare
bin/kibana.bat
Outdated
There was a problem hiding this comment.
I need to update this batch file to reflect the changes made in bin/kibana. Downloading a Windows VM to verify before adding to the PR.
There was a problem hiding this comment.
Here's two ways. I think the first is the more common (but longer);
@REM Loop through any command line parameters and if we find "--dev" add "--max-old-space-size=256"
:parse
IF "%~1"=="" GOTO endparse
IF "%~1"=="--dev" set NODE_OPTIONS="--max-old-space-size=256 %NODE_OPTIONS%"
SHIFT
GOTO parse
:endparse
And a single line way;
@REM If the command line parameters do not contain "--dev" then add "--max-old-space-size=256"
echo "%*" | findstr /V /C:"--dev" && set NODE_OPTION="--max-old-space-size=256 %NODE_OPTION%"
e133e0c to
f91d316
Compare
|
@LeeDr - would you mind reviewing/testing the changes made to the batch file in this PR? |
|
Why remove the limit in dev? Dev should be as prod like as possible, otherwise we're just asking for pain down the road. |
|
@Bargs - the optimize process requires much more memory to run and is not used in production, except for plugin installation which goes through |
|
Hmmm, I'm guessing you've seen the optimizer crash with |
README.md
Outdated
There was a problem hiding this comment.
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.
That is correct, it's just a recommendation. We could probably run on lower, but we do have things which are not old space.
f91d316 to
ea81885
Compare
docs/production.asciidoc
Outdated
|
In total: LGTM |
ea81885 to
1ef98b1
Compare
V8 will not trigger a full mark-sweep & mark-compact until there is memory pressure for the max-old-space-size, which is 1.6GB on a 64bit system. This means that Kibana will, at times, consume over 1.6GB of RSS memory. Bypassing this can be done by starting with `--dev` or explicitally setting `max-old-space-size`. For example: `NODE_OPTIONS="--max-old-space-size=1024" ./bin/kibana` Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
1ef98b1 to
e8e9f58
Compare
|
LGTM With --dev and no NODE_OPTIONS, it went to about 614M while running functional tests. With --max-old-space-size=50 it crashes with and without --dev. With --max-old-space-size=5000 without --dev I saw the memory get to about 1G but then dropped down to around 500M while the functional tests were running. |
|
@epixa - what do you think about getting this into alpha2? It's ready to merge, but I can hold off if you would like to wait for beta1. I also did further testing on Linux 32bit today. |
|
Yep, let's do it. |
|
I found a pretty big problem with this: Optimizing does happen on the server in production in at least one scenario: If you remove a plugin, the next time you start up the server, the optimizer is run on the remaining plugins. I just removed x-pack on an alpha2 build and now I can't start kibana with the default settings because the optimizer makes it crash due to out-of-memory. |
## Summary `eui@81.2.0` ⏩ `eui@81.3.0` ✨ Highlights: - fixes #158644 - Adds a new Timeline icon for use within `EuiMarkdownEditor` (cc @kqualters-elastic) - Expandable rows used within `EuiBasicTable` and `EuiInMemoryTable` now have a faster and snappier expand animation ___ ## [`81.3.0`](https://github.com/elastic/eui/tree/v81.3.0) - Added `timelineWithArrow` glyph to `EuiIcon` ([#6822](elastic/eui#6822)) **Bug fixes** - Fixed `EuiCodeBlock` potentially incorrectly ignoring lines ending with a question mark when using the Copy button. ([#6794](elastic/eui#6794)) - Fixed `EuiCodeBlock` to not include line numbers when copying content ([#6824](elastic/eui#6824)) - Fixed the expanded row animation on `EuiBasicTable` causing cross-browser Safari issues ([#6826](elastic/eui#6826))


V8 will not trigger a full mark-sweep & mark-compact until there is memory pressure for the max-old-space-size, which is 1.6GB on a 64bit system. This means that Kibana will, at times, consume over 1.6GB of RSS memory.
We will be setting max-old-space-size to 256MB unless it is ran with
--dev, in which case we will use the node defaults.Over-writing the max-old-space-size with NODE_OPTIONS is still possible.