mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
5 lines
206 B
Bash
Executable File
5 lines
206 B
Bash
Executable File
memory=$(awk '/MemTotal/{print $2}' /proc/meminfo);
|
|
memory=$((memory / 1024));
|
|
node_options="--max-old-space-size=$((memory - 1024))";
|
|
echo "NODE_OPTIONS=$node_options";
|
|
export NODE_OPTIONS="$node_options"; |