[英]Python IO error : too many open files
I am getting a python error in eclipse as this : 我在eclipse中遇到python错误:
"IOError: File not found - ./FASTLEXICON.7 (Too many open files)".
Here is some background : In my java program I am using a .Jar library which is using python to do some things. 这里有一些背景知识:在我的java程序中,我使用的是一个.Jar库,它使用python来做一些事情。 I can't make changes to the jar file. 我无法更改jar文件。 But while running my program from eclipse I am getting this python error as above. 但是当我从eclipse运行我的程序时,我得到了如上所述的python错误。 I am using Eclipse Galileo on Ubuntu and my python version is 2.7.1+ 我在Ubuntu上使用Eclipse Galileo,我的python版本是2.7.1+
can anybody help? 任何人都可以帮忙吗?
You need to increase the OS support for number of open files. 您需要增加对打开文件数量的操作系统支持。
in linux you can use to view current limit 在linux中,您可以使用查看当前限制
cat /proc/sys/fs/file-max
Use ulimit to change the number 使用ulimit更改数字
http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/ http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/
Edit: To make limits permenent http://posidev.com/blog/2009/06/04/set-ulimit-parameters-on-ubuntu/ 编辑:限制透明度http://posidev.com/blog/2009/06/04/set-ulimit-parameters-on-ubuntu/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.