简体   繁体   中英

Python IO error : too many open files

I am getting a python error in eclipse as this :

"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. I can't make changes to the jar file. But while running my program from eclipse I am getting this python error as above. I am using Eclipse Galileo on Ubuntu and my python version is 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

cat /proc/sys/fs/file-max

Use ulimit to change the number

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM