Tag Info

New answers tagged

0

Apply the changes directly to a running process if you have prlimit installed (comes with util-linux-2.21) prlimit --pid <pid> --<limit>=<soft>:<hard> for example prlimit --pid 12345 --nofile=1024:2048 Refer here


0

In my particular case, the application which I was running was begun with sudo. I believed that the limits would therefore be applied from the root user's account. I was wrong. Instead, I found that, although the application was running as root, the limits applied to it were the limits belonging to the user which launched the application.


0

ulimit(2) is obsolete now as it updates only a part of rlimit structure (most likely rendering it useless). There is a ulimit command in the bash shell, which is documented in bash's man page. The functions, getrlimit and setrlimit are to be used when linux apps are written as they supercede ulimit function.



Top 50 recent answers are included