mirror of
https://github.com/c9fe/22120.git
synced 2024-08-18 23:29:45 +02:00
7 lines
163 B
Bash
Executable File
7 lines
163 B
Bash
Executable File
#!/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
|