OpenSmallworld / nv-tilecacher

Other
3 stars 3 forks source link

JavaScript heap out of memory #3

Open gealexanderderzhanovsky opened 4 years ago

gealexanderderzhanovsky commented 4 years ago

Hi,

I'm running tile caching in customer dev environment and got this error. Also I'm tried to change max-old-space-size parameter for node, but it doesn't help. log.txt Capture

juanmpd commented 7 months ago

Just for future reference. I run into this same issue. Running with --countonly told me that it would create 100K tiles. I changed the conf file so that the number of expected tiles decreased down to 16K. After trying again, the issue dissapeared. So I suspect the script is intended to keep in memory some information about all the tiles being processed, which is what causes 'heap out of memory' if the number is too big. So I suppose the workaround is to split the tiles to be generated into several config files, and use the option '--configdir' instead of '--configfile' to deal with them.