Too many open files 問題

阿裏雲問答 2022-01-08 01:49:27 阅读数:944

open files

Too many open files 問題常見原因和解决方案有哪些呢?
來源:雲原生後端社區




采納答案1:

一般是代碼有Bug導致鏈接泄露,比如:流用完沒有釋放。如果不够用可以改系統配置。
1) What is ulimit in Linux? The ulimit command allows you to control the user resource limits in the system such as process data size, process virtual memory, and process file size, number of process etc.
2) What happens when the settings in this command are not set up properly? Various issues happen like native OutOfMemory, Too Many Open files error, dump files are not being generated completely etc.
3) How can you check current ulimit settings? There are various ways to check the current settings: a) From the command prompt, issue $ ulimit -a
來源:雲原生後端社區


版权声明:本文为[阿裏雲問答]所创,转载请带上原文链接,感谢。 https://gsmany.com/2022/01/202201080149274132.html