Hello all.
Is it possible to increase "Max open files" parameter for working process ? I mean this parameter:
cat /proc/<pid>/limits | grep files
Thanks for your advices
Hello all.
Is it possible to increase "Max open files" parameter for working process ? I mean this parameter:
cat /proc/<pid>/limits | grep files
Thanks for your advices
As a system administrator: The /etc/security/limits.conf
file controls this on most Linux installations; it allows you to set per-user limits. You'll want a line like myuser - nofile 1000
.
Within a process: The getrlimit and setrlimit calls control most per-process resource allocation limits. RLIMIT_NOFILE
controls the maximum number of file descriptors. You will need appropriate permissions to call it.