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 #3

Open
Remonell opened this issue Aug 26, 2018 · 3 comments
Open

JavaScript heap out of memory #3

Remonell opened this issue Aug 26, 2018 · 3 comments

Comments

@Remonell
Copy link

Hi,
I am getting the following error message when I try to run the bruteforce.js:

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

Is this because of your code or is there a problem with my device?
Running this on a raspberry pi.

Kind regards

@Mottoweb
Copy link

Putting if (this.baseConfig) delete this.baseConfig just before baseConfig declaration reduces memory usage by 50%, probably it could help you.

@harmtemolder
Copy link

harmtemolder commented Jan 21, 2019

I'm trying three things right now:

  1. @Mottoweb's suggestion
  2. Starting node with --max_old_space_size=4096 as described here
  3. Logging the memory usage (as reported by process.memoryUsage()) to both the console and the output CSV for further inspection

Will let you know how they go.

@telnemri
Copy link

Any update on this issue?

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

4 participants