我找到了一些文章,描述了如何通过/etc/security/limits.conf增加打开文件数量的限制,但我不明白这样做会产生什么影响。很多时候我看到人们将1024更新为2048。好吧,那些文件句柄一定会消耗内存或其他资源。为什么不增加到100000呢?打开文件会占用哪些资源呢?
关于如何增加限制的问题:https://stackoverflow.com/questions/34588/how-do-i-change-the-number-of-open-files-limit-in-linux
关于如何增加限制的问题:https://stackoverflow.com/questions/34588/how-do-i-change-the-number-of-open-files-limit-in-linux