Services and User Management
A running process with PID 4312 keeps hitting its open-file limit. Which command raises that limit for the process without restarting it?
Show the answer
Correct answerC. prlimit --pid 4312 --nofile=8192:8192
AWhy not this: ulimit changes limits only for the current shell and the processes it starts later, not PID 4312.
BWhy not this: fs.file-max is a system-wide total of open files, not the per-process limit that is being hit.
CWhy this is right: Prlimit --pid changes the soft and hard nofile limits of the running process.
DWhy not this: limits.conf is applied by PAM at the next login session, so the running process is not changed.
prlimit --pid <PID> can display and modify limits such as nofile or nproc for a running process, within the hard limit unless run as root. ulimit is the tempting alternative, but it only affects the current shell and the processes it starts later.