📜  bash: fork: 无法分配内存 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:13.357000             🧑  作者: Mango

代码示例1
echo 1 > /proc/sys/kernel/sysrq
echo f > /proc/sysrq-trigger
echo 0 > /proc/sys/kernel/sysrq

echo 2048000 > /proc/sys/kernel/threads-max
echo 6000000 > /proc/sys/vm/max_map_count
echo 2048000 > /proc/sys/kernel/pid_max

sysctl vm.overcommit_memory=0