mirror of
https://github.com/c9fe/22120.git
synced 2024-08-18 15:19:40 +02:00
7 lines
163 B
Bash
7 lines
163 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
phys=$(free -t -m | grep -oP '\d+' | sed '10!d')
|
||
|
alloc=$(echo "$phys * 90/100" | bc )
|
||
|
echo $alloc
|
||
|
node --max-old-space-size=$alloc src/app.js
|