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

JavaScript heap out of memory on v2.9.1 #1050

Closed
zjb0807 opened this issue Nov 9, 2024 · 3 comments · Fixed by #1054
Closed

JavaScript heap out of memory on v2.9.1 #1050

zjb0807 opened this issue Nov 9, 2024 · 3 comments · Fixed by #1054

Comments

@zjb0807
Copy link
Member

zjb0807 commented Nov 9, 2024

<--- Last few GCs --->

[1:0x7f9ae0dd6020] 163665830 ms: Mark-sweep 2001.8 (2080.9) -> 1984.9 (2079.2) MB, 5824.8 / 0.1 ms (average mu = 0.199, current mu = 0.059) allocation failure; scavenge might not succeed
[1:0x7f9ae0dd6020] 163666672 ms: Scavenge 1999.5 (2079.6) -> 1989.6 (2079.4) MB, 48.7 / 0.0 ms (average mu = 0.199, current mu = 0.059) task;
[1:0x7f9ae0dd6020] 163668846 ms: Scavenge 2001.5 (2079.9) -> 1992.5 (2079.9) MB, 35.6 / 0.0 ms (average mu = 0.199, current mu = 0.059) task;

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

@shunjizhan
Copy link
Collaborator

how much memory does the machine have, and what's the current MAX_CACHE_SIZE? can you try decrease MAX_CACHE_SIZE

@shunjizhan
Copy link
Collaborator

shunjizhan commented Nov 9, 2024

it could be api's issue... it does not a limit on memo, so we might still need to go back to using storage query helper.

polkadot-js/api#5981

@zjb0807
Copy link
Member Author

zjb0807 commented Nov 12, 2024

eth-rpc-adapter exited

/app/node_modules/@polkadot/api/cjs/base/Init.js:152
            throw new Error('Unable to retrieve header and parent from supplied hash');
                  ^

Error: Unable to retrieve header and parent from supplied hash
    at ApiPromise._getBlockRegistryViaHash (/app/node_modules/@polkadot/api/cjs/base/Init.js:152:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.20.4

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

Successfully merging a pull request may close this issue.

2 participants