Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash: fork: Cannot allocate memory

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
Source by askubuntu.com #
 
PREVIOUS NEXT
Tagged: #Cannot #allocate #memory
ADD COMMENT
Topic
Name
7+4 =