Closed yfl92 closed 1 year ago
This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
System information
Erigon version:
./erigon --version
Reproduced on both:OS & Version: Windows/Linux/OSX Ubuntu 20-04-lts
Commit hash: d9c5a01103912a64b31c01afac05ab62dfa5c65d OR https://github.com/maticnetwork/erigon/releases/tag/v0.0.6
Erigon Command (with flags/config):
Polygon Mainnet
erigon --datadir=/data \ --chain=bor-mainnet \ --bor.heimdall=some_heimdall_url \ --snapshots=false \ --graphql \ --http.addr=0.0.0.0 \ --http.api=eth,erigon,web3,net,debug,trace,txpool,admin,bor \ --http.corsdomain= \ --http.vhosts= \ --rpc.batch.limit=0 \ --rpc.returndata.limit=0 \ --downloader.disable.ipv6=true \ --log.console.verbosity=info
Polygon Mumbai
erigon --datadir=/data \ --chain=mumbai \ --bor.heimdall=some_heimdall_url \ --snapshots=false \ --graphql \ --http.addr=0.0.0.0 \ --http.api=eth,erigon,web3,net,debug,trace,txpool,admin,bor \ --http.corsdomain= \ --http.vhosts= \ --rpc.batch.limit=0 \ --rpc.returndata.limit=0 \ --downloader.disable.ipv6=true \ --log.console.verbosity=info
Concensus Layer: Heimdall
Concensus Layer Command (with flags/config): We use public heimdall
Chain/Network: Polygon/Mainnet & Mumbai
Expected behaviour
Erigon to sync blocks w/o running out of memory
Actual behaviour
Erigon spammed with following logs
As soon as the ^ log starts spamming, I see a steep memory spike until the it OOM'd, consuming 128 GB of memory. During the process, Erigon stops syncing block.
Steps to reproduce the behaviour
Download mumbai snapshot from https://snapshots.polygon.technology/, specifically https://snapshot-download.polygon.technology/erigon-mumbai-archive-2023-05-24.tar.zst
Then run the node using the args above. I recommend running multiple as once. We saw roughly 50% of the nodes end up OOM'd
Backtrace