My nodejs program runs out of memory...I know you can set/change the allocated amount of memory in nodejs - but this is not enough... if i set it to 1,2,4 gb...
My program runs though 1,5, 10 or more millions iteration in a loop - where it saves to my db also... and but after a while it crashes...
I wonder why - the program actually crashes and not just runs slower / swap data to disk ect... like 'normal'...
I have tried to install and run a program in windows which helps GC / free up memory ... to see if it made any changes ... but it didnt...
How do i solve this? How do i get a better idea of what actually uses the amount of memory - so i can change the code ect?
Screenshot: http://screencast.com/t/Vucqa60F1