On premise pipeline - JavaScript heap issues


I am currently evaluating both the point-cloud-tiler and the model-tiler tools from the in house pipeline (v4.4.2). The point-cloud-tiler seems to be able to utilise more than 2GB of RAM per core, however the model-tiler will not. When trying to process large OBJ files the process crashes with the error “CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory”. I’ve tried to resolve this by setting the max-old-space-size node option, but this causes the model-tiler to fail to run. Having set this node option to any size, you cannot even run ‘model-tiler --version’ anymore. The point-cloud-tiler however, seems unaffected. I’ve tried this now on both Windows and Linux and they both behave the same.

Any ideas on how to fix this?