I had a terminal session open and after I woke my laptop up I cannot use the terminal nor create new sessions.
The error I get on the opened session is:
-bash: fork: Resource temporary unavailable
The error when trying to open new terminal:
[forkpty: Resource temporary unavailable]
[Could not create a new process and open a pseudo-tty.]
Looking deeper, I was able to open the Activity Monitor and I found that there was a very large number (thousands) of processes linked to the same application, VShildScanner
. From here, I wasn't able to kill those processes.
I tried to restart or shutdown the system, since I wasn't able to do anything else, but those also failed. I was only able to power cycle.
My thought was to run a killall
from the terminal but I can not get a functioning shell / terminal window once the system is blocked.
Are there better ways to handle such a situation when processes grow out of proportions?