任何人都可以证实这个问题(文件描述符数量有限的一些Android设备)? [英] Can anyone confirm this issue (limited number of file descriptors on some Android devices)?

查看:506
本文介绍了任何人都可以证实这个问题(文件描述符数量有限的一些Android设备)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前工作的一个很酷的Andr​​oid游戏里面讲是真实的即将发布。我们的一些测试者开始抱怨,游戏与打开的文件太多错误消息崩溃。我试着模拟的AVD模拟器这个问题,但无法重现的错误。

I'm currently working on a cool Android game which was about to be released real soon. Some of our beta testers started complaining that the game crashes with the "too many open files" error message. I've tried simulating this problem on the AVD emulator but couldn't reproduce the error.

后来,我意识到,只有我们的银河S3和华硕的Nexus 7的测试人员抱怨。
我发现这个bug问题上Android的bug跟踪并这听起来非常相似,所发生的事情在我身上。

Afterwards, I realized that only our Galaxy S3 and Asus Nexus 7 testers were complaining. I found this bug issue on Android's bug tracker and it sounds quite similar to what is happening to me.

这听起来像一个严重的问题,结构的影响其所有内部SD卡的设备。
这些设备被限制为仅1024文件描述符!
任何人都可以证实这个问题?

This sounds like a serious architecture problem which effects all internal SD card devices. These devices are limited to only 1024 file descriptors! Can anybody confirm this problem?

推荐答案

其实这个程序是否打开了许多文件或不是它是不相关的。
什么是令人不安的是,在整个设备限制为1024打开文件。
就拿运行的应用程序100每次打开10个文件同时(特性,数据库等)银河S3设备。这是非常接近极限。

Actually it is not relevant whether this app is opening a lot of files or not. What's troubling is that the entire device is limited to 1024 open files. Take for instance a Galaxy S3 device running 100 apps each opening 10 files concurrently(properties, databases and the like). This is extremely close to the limit.

如果您检查最大打开文件限制(的/ proc / SYS / FS /文件-MAX)上的大多数设备是远远超过50K。

If you check the max open files limit (/proc/sys/fs/file-max) on most devices it is well over 50K.

这篇关于任何人都可以证实这个问题(文件描述符数量有限的一些Android设备)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆