-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #46852
Comments
Pinging @elastic/kibana-operations |
runbld logs show that this has happened 818 times in the last 24 hours... I think most of the time it doesn't cause a problem that fails the build, but I think it did in @Rasroh's case. See here: https://kibana-ci.elastic.co/job/elastic+kibana+pull-request/4241/JOB=x-pack-ciGroup2-14,node=linux-immutable/consoleFull @elastic/kibana-operations Do we just need to start setting max_old_space_size for CI? I surprisingly don't see it getting set up anywhere... |
@elastic/kibana-operations this seems to be failing more and more builds, and happens locally a lot. We should probably discuss how to handle. We can probably bump max_old_space_size temporarily but need to make sure we don't just keep bumping it higher and higher. |
Is there a workaround for this? For example give the kibana container some env flags for the JVM to work with a larger heap? I see this issue occuring everytime I open the "Discover" window and no filter is specified. |
@raokrutarth curious, how many index patterns do you have? |
@tylersmalley just 1. But the index has around 850 entries each with over 1000 fields where each field value can be up to 10k chars. I assumed this wouldn't be a big scale. |
I'm also facing this issue and I have 8GB of RAM. I added NODE_OPTIONS="--max_old_space_size=4096" to /etc/init.d/kibana, under "# Setup any environmental stuff beforehand" and restarted kibana, but it didn't have any effect. |
@jl2035 if you are doing it here I think it should be |
@mistic I tried your suggestion but it also doesn't work. What exactly is the meaning of this output?
And bellow that:
|
It means you are hitting your defined memory limits for the process. Could you please try to add |
Now, this worked! Thank you sir! Can I now remove this option? |
@jl2035 you need to keep that option set, otherwise it will use the node defaults and you will experience the out of memory again 😞 |
Quite Often seeing this out of memory issue on the PR runs in one of the runs if a test is run in a loop.
May be there is a tweak somewhere in jenkins file to increase the memory on the worker node ?
cc @brianseeders
The text was updated successfully, but these errors were encountered: