Can anyone confirm this issue (limited number of file descriptors on some Android devices)?

后端 未结 1 1831
走了就别回头了
走了就别回头了 2021-01-02 10:27

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

相关标签:
1条回答
  • 2021-01-02 11:14

    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.

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

    0 讨论(0)
提交回复
热议问题