I am testing a private network for last few weeks. The block height has reached around 2,81,000 and now suddenly the memory usage of my server instance has shooted up TOO High and the geth
process gets killed immediately after the 8GB memory is exhausted.
To resolve this I created a 100GB swapfile on the server and all the memory was exhausted and then again the process was killed, saying "out of memory".
Once I start geth (private chain with network id xxxxx), even when mining is stopped the memory usage starts to grow at 100mb/sec eating up all the RAM and the Swapfile
UPDATE
After researching for around 12 hours, An important thing is detected that it occurs only when I open the rpc port 8546
, If start geth on any other rpc port, geth is satisfied with approx 550 MB RAM.
IS IT A DoS Attack?
geth
s cache too? Try forcing a limit say--cache=4192
– hextet Apr 13 '18 at 0:52geth
's cache. Setting --cache 4192, or even 2048, I tried every option but does not help. However please also check my update in the question. – Ramesh Pareek Apr 13 '18 at 1:04