You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a Bug Report, Feature Request, or related to Documentation
I have searched the existing issues
Is there an existing issue for this?
I have searched the existing issues
What's up?
I have made a fully synced ethereum node using binaries (heimdall and bor) and use its RPC point to get blockchain's data. When i start processing blocks, after some time the heap is out of memory. Upon investigating I got to know that this issue is because of web3.eth.Contract.
Environment
Operating system: Mac
bor version: v0.2.16
heimdall version: v0.2.11
web3-eth-contract : v1.8.1
constWeb3=require('web3')asyncfunctionmain(){constweb3=newWeb3(newWeb3.providers.HttpProvider('https://mainnet.infura.io'))for(leti=0;;i++){newweb3.eth.Contract([],'0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2')if((i%1000)===0){// Use node --expose-gc ./testLeak.jsif(global.gc){global.gc()}constused=process.memoryUsage().heapUsed/1024/1024console.log(`Heap used ${used}`)}}}main()
This is not a Bug Report, Feature Request, or related to Documentation
Is there an existing issue for this?
What's up?
I have made a fully synced ethereum node using binaries (heimdall and bor) and use its RPC point to get blockchain's data. When i start processing blocks, after some time the heap is out of memory. Upon investigating I got to know that this issue is because of
web3.eth.Contract
.Environment
Operating system: Mac
bor version: v0.2.16
heimdall version: v0.2.11
web3-eth-contract : v1.8.1
Steps to reproduce
You can run the following sample code with
Examples/References
I have tried different approaches specially from these two links #3042 #3866 but my issue persists
The text was updated successfully, but these errors were encountered: