-
Notifications
You must be signed in to change notification settings - Fork 20.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: out of memory #16174
Comments
How much ram does your system have and what flags are you running Geth with? |
Same here, just recently failed that way. Running w/ 4GB RAM and --max-peers 5. Memory usage creeps up 90%+ then crash. Not sure why it crashed before even starting to use swap. Same behavior on Amazon Linux & Ubuntu. |
My Ubuntu-16 is with 8G RAM, and the geth process was always killed for "Out of memory", until I run this in shell script everyday: |
@karalabe |
I was able to run a rinkeby node w/ 1gb for months w/o issues with ws & rpc endpoints enabled as well as 2 days ago I came across the out of memory error. I updated to geth This is on debian |
I'm also getting 'fatal error: out of memory' on my Ubuntu 16.04 LTS and Windows Server 2016 with 64GB RAM. Once started, geth keeps growing until it takes all availavle RAM and crash (on windows) or untill it fills swap (on ubuntu) and then crash with OOM error. Used flags: Error head: Then goes over 1Gb of:
Error tail: |
@perissology Geth 1.8.0 bumped the default cache allowance to 1GB (since most people don't bother changing it). If you're running on a memory constrained machine, you can reduce it explicitly via |
@karalabe At least for WIN32 compiled geth, it isn't very smart to assume you would ever have more than 4GB RAM available. |
@Sadler2 Win32 actually limits max memory usage to 3GB (go figure why Microsoft did that). Either way, I don't think 32 bit windows is a platform we should worry too much about, especially since you'd need to explicitly modify cache settings to make something go boom. As for this particular issue, it's a limitation of Windows and Go. There's not much we can do currently apart from tell people not to use more than |
System information
Geth version:
1.8.0-stable-5f540757
OS & Version: Windows
Network: rinkeby
The text was updated successfully, but these errors were encountered: