Closed matthewdarwin closed 5 years ago
This issue was discussed earlier today in https://t.me/eosfullnodes
@matthewdarwin can I have the reproduction steps ?
Reproduction steps 1) get a copy of blocks 2) run nodeos --hard-replay --replay-blockchain" 3) wait
Expected mostly fixed with #7179
When replaying blocks on mainnet with "/opt/eosio/bin/nodeos --hard-replay --replay-blockchain", nodeos seems to leak memory.
When I replay blocks from scratch, I run out of RAM (machine starts swapping) on a RAM=16GB CPU=i9-9900k machine in about 30 hours. If you restart nodoes then memory goes back to normal. If you restart nodeos regularly (every hour or so), replay will finish without running out of RAM.
I'm testing 1.6.0-rc1 in a docker container (using the equivalent to the out of box builder image, but I built my own). I did not test earlier versions.
Here is a chunk of log file from around block 15M. In 5 minutes, resident memory (RSS) went up by ~20K, while state file on disk (DISK) went up ~8K.
Here is 5 minutes from the replay where the on disk size of the state file says the same and the resident memory keeps increasing
here is the config.ini: