Another option is to use the prlimit command (from the util-linux package). For example if you want to set the maximum number of open files for a running process to 4096:
prlimit -n4096 -p pid_of_process
More Related Contents:
- How can I measure the actual memory usage of an application or process?
- What’s the best way to send a signal to all members of a process group?
- How to prevent a background process from being stopped after closing SSH client in Linux
- What killed my process and why?
- What is double dot(..) and single dot(.) in Linux?
- how can i show the size of files in /proc? it should not be size zero
- Threads vs Processes in Linux [closed]
- How do I set the working directory of the parent process?
- Quickly create a large file on a Linux system
- Maximum number of processes in linux [closed]
- How to get full path of a file?
- How can I randomize the lines in a file using standard tools on Red Hat Linux?
- How to write data to existing process’s STDIN from external process?
- Linux Script to check if process is running and act on the result
- How Linux handles threads and process scheduling
- Relinking an anonymous (unlinked but open) file
- Programmatically get parent pid of another process?
- Linux/Unix command to determine if process is running?
- How to get child process from parent process
- How can I remove the BOM from a UTF-8 file? [duplicate]
- How do I get the path of a process in Unix / Linux?
- How to increase Neo4j’s maximum file open limit (ulimit) in Ubuntu?
- Does linux schedule a process or a thread?
- Faster forking of large processes on Linux?
- Remove a symlink to a directory
- How to get the start time of a long-running Linux process?
- Start script after another one (already running) finishes
- Linux: process into a service
- How to set process group of a shell script
- How to set process ID in Linux for a specific program