[英]Python IO error : too many open files
我在eclipse中遇到python錯誤:
"IOError: File not found - ./FASTLEXICON.7 (Too many open files)".
這里有一些背景知識:在我的java程序中,我使用的是一個.Jar庫,它使用python來做一些事情。 我無法更改jar文件。 但是當我從eclipse運行我的程序時,我得到了如上所述的python錯誤。 我在Ubuntu上使用Eclipse Galileo,我的python版本是2.7.1+
任何人都可以幫忙嗎?
您需要增加對打開文件數量的操作系統支持。
在linux中,您可以使用查看當前限制
cat /proc/sys/fs/file-max
使用ulimit更改數字
http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/
編輯:限制透明度http://posidev.com/blog/2009/06/04/set-ulimit-parameters-on-ubuntu/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.