“Max open files” for working process

2019-01-11 04:24发布

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

7条回答
forever°为你锁心
2楼-- · 2019-01-11 04:53

Old thread, I know.

You could use gdb, break into the process, call the aforementioned syscalls to raise the limit you're interested in, then continue the job and exit gdb. I've edited things on the fly this way a few times.

Your app wouldn't be down, but just frozen for the moment while you performed the call. if you're quick (or you script it!), it'll likely not be noticeable.

查看更多
登录 后发表回答