Memory Leak in query.entriesPaged
#5798
Labels
P4 - Needs Investigation
Requires analysis to determine cause or feasibility. Not fully understood, needs research first.
I've encountered an issue related to memory consumption while using the entriesPaged method. As I attempt to retrieve entries from the API in batches within a loop, I've noticed a steady increase in memory usage over time. This gradual buildup eventually leads to high memory consumption, crashes with
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Here is the code which lead to memory leak
please run it against
rpc: wss://enjin-matrix-rpc-1.dwellir.com
or you can also quickly reproduce this by running this on polkadot.js web.
Please tell us about your environment:
Version: 10.11.2
Environment: Node, Browser
Language:
The text was updated successfully, but these errors were encountered: