Closed vogelito closed 6 years ago
cors domain set to localhost to make sure it was not about brute force attacks.
Cors domain settings won't protect you from bruteforce-attacks from the internet, only protect you from pages you visit with your own browser from being able to read data from the api (they can still write/POST though)
You're right, that was an oversight, the thing is that disable the db rpc solved the issue. Not sure why an attacker would use that particular rpc api, so I suspect the out of memory problem is not related to an attack. I still have to test by closing the port on the firewall.
removing db from RPC API didnt resolve the problem for us.
I think is about 32bit vs 64bit. I found same geth.exe version on ProgramFiles and works. Used before from ProgramFiles(x86).On Mar 28, 2018 5:29 PM, alvin notifications@github.com wrote:I got this problem too. Geth:1.8.2-stable 8G memory it could be solved by creating a swap file,but is there some way to limit the memory Geth used ? changing --cache seems nothing happend
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
System information
Geth version:
OS & Version: Ubuntu 14.04.5 LTS
Expected behaviour
Geth 1.6.6 never used as much memory
Actual behaviour
Geth 1.7.0 eats away all the memory and dies
Steps to reproduce the behaviour
This has been happening when doing a fresh sync on 1.7.0 in a box with 8GB RAM
Backtrace
Full backtrace is more than 2,000 lines, showing the first few ones:
The black vertical line shows the moment I shut down Geth 1.6.6 and started a fresh sync for 1.7.0.
This is CPU:
This is memory:
The graphs don't have full resolution, but the dip in memory consumption is geth restarting after the box becomes unusable. This never happened on the same box with prior versions of geth.