CompTIA Server+ SK0-005 Practice Question
A Linux file server that normally runs nightly backups has suddenly stopped accepting new SSH sessions, and many interactive commands fail with the message:
bash: fork: Resource temporarily unavailable
When you run ps -eo pid,ppid,stat,cmd | head
on the system console, you see hundreds of lines whose STAT column shows Z+
. Attempting kill -9 <PID>
on several of those PIDs has no effect-the entries remain in the process list.
Which of the following actions should you take first to restore normal operation?
Delete any stale *.pid files in /run and start the backup service again.
Raise
kernel.pid_max
to a higher value and runsystemctl daemon-reload
.Identify and restart (or gracefully terminate) the parent process so that the zombie children are reaped by init.
Increase the per-user process limit with
ulimit -u
and restart the SSH daemon.