最近,我们在 Apache 和 Tomcat 上托管的应用程序之一遇到了一些问题,两台服务器的打开文件数量不同(1024 和 5000),我们认为这就是导致问题的原因。
使用 ulimit -a
命令验证打开文件的数量。
有人可以告诉我这个打开的文件号到底是什么吗?
最佳答案
RLIMIT_NOFILE
Specifies a value one greater than the maximum file descriptor number that can be opened by this process. Attempts (open(2), pipe(2), dup(2), etc.) to exceed this limit yield the error EMFILE.
关于linux - linux下打开的文件是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29295871/