1

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?

  • are you using Proof of Work in your network? and do you need to do so for any particular reason or could you swap to a less computationally-expensive option such as Clique? – TC8 Apr 12 '18 at 20:07
  • can you suggest how? and I am sure there is something wrong with my system as I know it will use up whatever amount of memory is given – Ramesh Pareek Apr 13 '18 at 0:33
  • What're you setting geths cache too? Try forcing a limit say --cache=4192 – hextet Apr 13 '18 at 0:52
  • I am not explicitly setting geth '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
  • have you fiddled with the parameters in the block-difficulty calculation? – Theo Port Apr 13 '18 at 9:41
0

If it happened to you as well, The probability is that you are opening your port on http://0.0.0.0.

Instead while running geth, use --rpcaddr as 'localhost'. or open your http endpoint on 127.0.0.1.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.