SpyJS out of memory error

I'm running spyJS on my node.js project.  Its been working great until I started loading a geoIP database in to memory ( Maxmind using the NPM 'maxmind' package.)

Now when the loading of the maxmind db takes place I encounter:

"FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory" 


I have tried excluding the individual maxmind.dat files from SpyJS and the module itself but the data is actually loaded into a custom module I've build that leverages the data for IP lookups and I dont want to exclude that as I'm interested in understanding performance for that process.


How do I work around this issue? Is there a way to increase the memory allocation to SpyJs?

Cheers,

SB

Please sign in to leave a comment.