linux - linux下打开的文件是什么?

标签 linux

最近,我们在 Apache 和 Tomcat 上托管的应用程序之一遇到了一些问题,两台服务器的打开文件数量不同(1024 和 5000),我们认为这就是导致问题的原因。 使用 ulimit -a 命令验证打开文件的数量。

有人可以告诉我这个打开的文件号到底是什么吗?

最佳答案

来自getrlimit(2)

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/

相关文章:

linux - 切换到Secure world后OP-TEE的Linux调度器如何工作

python - Shell:提示用户输入目录路径

linux - 使用 SCP 将文件从本地复制到远程时权限被拒绝

python - Paramiko ssh linux 命令执行没有结果

linux - -d 0/0 是什么意思?

c - 在这种情况下我需要同步吗?

linux - 没有设置 X11 DISPLAY 变量,但是这个程序执行了一个需要它使用 Putty 的操作?

c - 原始克隆系统调用无法正常工作

linux - 在 1and1 上安装 Concrete 5 后,htaccess 列出目录文件不再起作用

c - 如何理解 "__xg"这个宏?