Skip to content

Commit 6a53fc9

Browse files
authored
Merge pull request #42 from WorldBank-Transport/feature/node-process-memory
Allow for ram analysis node process to use more memory
2 parents cf7e430 + 59af9c9 commit 6a53fc9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ram-analysis/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ RUN yarn
88

99
RUN mkdir /conversion && cd /conversion && echo "disk=/var/tmp/stxxl,2500,memory" > .stxxl && ln -s /code/node_modules/osrm/profiles/lib/ .
1010

11-
CMD ["node", "index.js"]
11+
CMD ["node", "--max_old_space_size=8192 index.js"]

ram-analysis/local-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ then
2727
export 'STORAGE_REGION=us-east-1'
2828
export 'CONVERSION_DIR=./conversion'
2929

30-
node index.js
30+
node --max_old_space_size=8192 index.js
3131
fi

ram-analysis/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ram-analysis",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)