Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible memory leak when running witch --gcmode full #917

Open
1aBcD1234aBcD1 opened this issue Jul 23, 2024 · 2 comments
Open

Possible memory leak when running witch --gcmode full #917

1aBcD1234aBcD1 opened this issue Jul 23, 2024 · 2 comments

Comments

@1aBcD1234aBcD1
Copy link

System information

Geth version: scroll-v5.5.0
OS & Version: Ubuntu with docker version 25.0.2, build 29cf629

Expected behaviour

Actual behaviour

I have been trying to setup a full node instead and an archive node. When using the --gcmode full, geth service crashes since it consume all the RAM of the server.

Seems memory leak is in function func (l *ZktrieDatabase) Put(k, v []byte) error at trie/zk_trie_database.go line 39.

Steps to reproduce the behaviour

  • Build docker image
  • Run it as follows:
geth  --datadir "gethdatadir" --http --gcmode full  --http.addr "0.0.0.0" --http.port 8545 --http.api "eth,net,web3,debug,scroll" --l1.endpoint "eth_rpc_url" --rollup.verify --http.vhosts "*" --maxpeers 100 --http.addr "0.0.0.0" --http.port 8545 --http.api eth,web3,net,debug,trace,txpool,admin --ws --ws.port 8546

Backtrace

You can check the heap and allocs from the following files
heap.txt
allocs.txt

@Thegaram
Copy link

Thank you for reporting this. Currently we only support --gcmode archive and full mode is known to not work, but we will work on adding pruning in the near future.

@1aBcD1234aBcD1
Copy link
Author

Alright, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants