Interview Prep/Linux/Logs, Limits & High-Traffic Tuning

Show correct limits.conf syntax.

BeginnerProductionLogs, Limits & High-Traffic Tuning
Answer
# /etc/security/limits.d/90-app.conf
# <domain>  <type>  <item>   <value>
appuser     soft    nofile   65536
appuser     hard    nofile   131072
@devops     soft    nproc    4096
*           hard    core     0

Changes apply to new login sessions only. The soft limit cannot exceed the hard limit; a user can raise their own soft limit up to hard with ulimit -n.

All Linux questions Roadmap: Linux

More on Logs, Limits & High-Traffic Tuning