【崩溃】android socket,文件打开过多造成的崩溃

问题链接

https://stackoverflow.com/questions/30521826/fortify-source-fd-set-file-descriptor-fd-setsize-calling-abort

问题描述

Your process has too many file descriptor or sockets open, and when the OS limit is reached, your app gets killed.

错误现象

日志:


image.png

新增的线程,文件流,数据库,socket连接等,都会增加 fd的数量

你可能感兴趣的:(【崩溃】android socket,文件打开过多造成的崩溃)