chairemobilite / transition

Transition is a modern new approach to transit planning. It's a web application to model, simulate and plan public transit and alternative transportation.
http://transition.city
MIT License
22 stars 13 forks source link

Set memory limit option in the right order of the node CLI #818

Closed greenscientist closed 9 months ago

greenscientist commented 9 months ago

We need to pass node arguments before the script filename, otherwise the arguments are passed to the script.

From the Node doc: node [options] [V8 options] [ | -e "script" | -] [--] [arguments]

Maybe this worked when we were using yarn babel-node, but it's not working with straight up yarn node

greenscientist commented 9 months ago

The max-old-space parameter was ignored and we were running with only 2gig of max memory. I was hitting the limit when importing the STM GTFS. (I have lot of previously loaded nodes, which might explain why it takes more memory here)