gekkowarez / bruteforce

A swiss army nodejs brute force backtester for Gekko trading bot. Saves time so you can spend more time looking good.
MIT License
45 stars 16 forks source link

JavaScript heap out of memory #3

Open Remonell opened 6 years ago

Remonell commented 6 years ago

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 commented 6 years ago

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

harmtemolder commented 5 years ago

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 commented 5 years ago

Any update on this issue?