简体   繁体   English

Python IO错误:打开的文件太多

[英]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.

相关问题 使用WordNet执行词干分析,io错误:打开的文件太多 - using WordNet to perform stemming, io error: Too many open files 打开文件过多错误 - Too many open files error java.io.IOException:无法运行程序“ / bin / bash”:error = 24,打开的文件太多 - java.io.IOException: Cannot run program “/bin/bash”: error=24, Too many open files “ffmpeg”:java.io.IOException:error = 24,打开的文件过多 - “ffmpeg”: java.io.IOException: error=24, Too many open files 为什么会出现这个错误? :java.io.FileNotFoundException: /dir/myfile.txt(打开的文件太多) - why does this error occur? :java.io.FileNotFoundException: /dir/myfile.txt (Too many open files) sf.jdbc.CannotGetJdbcConnectionException: IO 错误 -> java.net.SocketException: 打开的文件太多 - sf.jdbc.CannotGetJdbcConnectionException: IO Error -> java.net.SocketException: Too many open files java.io.FileNotFoundException:/ tmp /(打开的文件太多) - java.io.FileNotFoundException: /tmp/ (Too many open files) java.io.FileNotFoundException :(打开的文件太多) - java.io.FileNotFoundException: (Too many open files) java.io.IOException:无效的参数和太多打开的文件 - java.io.IOException: Invalid argument and Too many open files java.io.FileNotFoundException(打开的文件太多) - java.io.FileNotFoundException (Too many open files)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM