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
While running Anvil as part of a load scenario, the memory usage of Anvil nodes increases very quickly. The load scenario generates one transaction every 5 seconds, and the blocktime of Anvil is set to 1 second. Within 30 minutes, the memory usage surges to 6 GiB. Using the --prune-history option effectively manages the memory usage, but it results in a BlockOutOfRangeError (BlockOutOfRangeError: block height is 501 but requested was 500) when querying deployed contracts.
Is there a workaround for this issue? Can Anvil be used for high load testing scenarios?
The text was updated successfully, but these errors were encountered:
Component
Anvil
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (503792a 2024-05-10T11:26:11.682258969Z)
What command(s) is the bug in?
anvil --chain-id 1337 --block-time 2 --gas-limit 400000000000000 --code-size-limit 30000 --base-fee 100000 --host 0.0.0.0 --port 8545 --accounts 20 --balance 2000000000000000000 --state /state/dump.json --state-interval 60 --transaction-block-keeper 500
Operating System
Linux
Describe the bug
While running Anvil as part of a load scenario, the memory usage of Anvil nodes increases very quickly. The load scenario generates one transaction every 5 seconds, and the blocktime of Anvil is set to 1 second. Within 30 minutes, the memory usage surges to 6 GiB. Using the --prune-history option effectively manages the memory usage, but it results in a BlockOutOfRangeError (BlockOutOfRangeError: block height is 501 but requested was 500) when querying deployed contracts.
Is there a workaround for this issue? Can Anvil be used for high load testing scenarios?
The text was updated successfully, but these errors were encountered: