mirror of
https://github.com/c9fe/22120.git
synced 2024-10-26 22:52:38 +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
|