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

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

Closed
bozoi3 opened this issue Jan 22, 2024 · 2 comments

Comments

@bozoi3
Copy link

bozoi3 commented Jan 22, 2024

The validator start throwing:
<--- Last few GCs --->

[1:0x7f4a088226a0] 342525 ms: Scavenge (reduce) 4076.9 (4141.6) -> 4076.8 (4142.4) MB, 5.47 / 0.14 ms (average mu = 0.236, current mu = 0.091) allocation failure;
[1:0x7f4a088226a0] 342599 ms: Scavenge (reduce) 4077.8 (4142.4) -> 4077.9 (4142.6) MB, 6.17 / 0.14 ms (average mu = 0.236, current mu = 0.091) allocation failure;
[1:0x7f4a088226a0] 342605 ms: Scavenge (reduce) 4077.9 (4142.6) -> 4077.8 (4143.4) MB, 5.59 / 0.14 ms (average mu = 0.236, current mu = 0.091) allocation failure;

<--- JS stacktrace --->

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

Describe the bug
The validator stop validating

Expected behavior

Screenshots

DAppNode version:

  • Package version: Version: 0.1.10 (v1.14.0 upstream)
  • OS: DAppNode

Additional context

@bozoi3 bozoi3 changed the title FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory Lodestar FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory Jan 22, 2024
@nflaig
Copy link
Collaborator

nflaig commented Jan 22, 2024

Thanks for reporting this @bozoi3. Are you running Nethermind as execution layer and was this related to the incident from yesterday?

There are also ongoing discussions if we need to increase the default memory limit of Lodestar which we will likely do in the next release (this week).

If you are still seeing this issue on your end even with Nethermind issue being resolved you can also manually increase the memory limit by setting 6144 in the advanced configuration of the beacon node, the config param is called MEMORY_LIMIT.

@nflaig
Copy link
Collaborator

nflaig commented Jan 23, 2024

Default memory limit has been increased to better handle such cases and prevent Lodestar from crashing

@nflaig nflaig closed this as completed Jan 23, 2024
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