man 5 proc, 找到file-max的解釋:
file-max中指定了系統範圍內所有進程可開啟的檔案控制代碼的數量限制(系統層級, kernel-level). (The value in file-max denotes the maximum number of file handles that the Linux kernel will allocate).當收到”Too many open files in system”這樣的錯誤訊息時, 就應該曾加這個值了.
可開啟檔案控制代碼數設定的太大, 有那些危害:
If the file descriptors are tcp sockets, etc, then you risk using up a large amount of memory for the socket buffers and other kernel objects; this memory is not going to be swappable.