Getting this Linux error message?

Resource temporarily unavailable

It’s because your system is limiting the number of files / processes / CPU that your particular user ID can use.

If you use WHM/Cpanel, enabling the “Shell fork bomb protection” can make the “Resource temporarily unavailable” message appear more often.

Don’t disable the shell fork bomb protection – it’s a good thing. After all, do you want any jackass user to be able to write a perl script containing the line “while (fork());” and bring your system to its knees?

Instead, consider raising the limits for individual trusted users using ulimit. (You will need root access to do this.)

Make the following changes in the system shell init files.

(these files)
/etc/profile
/etc/bashrc
/etc/profile.d/limits.sh

if [ "$LIMITUSER" = "root" ]; then
ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null
elif [ "$LIMITUSER" = "YOUR USER NAME" ]; then
ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null
else
ulimit -n 100 -u 20 -m 200000 -d 200000 -s 8192 -c 200000 -v 200000 2>/dev/null
fi