android gradle build 时出现"Too many open files" 异常
2017-11-29 17:05
495 查看
mac 系统
解决方法一: 增加系统open files 的数量
ulimit -a 查看open files
ArjundeMacBook-Pro:~ Arjun$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 709
virtual memory (kbytes, -v) unlimited
ulimit -n 1024
ArjundeMacBook-Pro:~ Arjun$ ulimit -n 1024
ArjundeMacBook-Pro:~ Arjun$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 709
virtual memory (kbytes, -v) unlimited
解决方法一: 增加系统open files 的数量
ulimit -a 查看open files
ArjundeMacBook-Pro:~ Arjun$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 709
virtual memory (kbytes, -v) unlimited
ulimit -n 1024
ArjundeMacBook-Pro:~ Arjun$ ulimit -n 1024
ArjundeMacBook-Pro:~ Arjun$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 709
virtual memory (kbytes, -v) unlimited
相关文章推荐
- 压力测试中出现:“Too many open files”异常导致weblogic无法继续正常访问
- 求助!! android 上使用mina 出现java.net.SocketException: Too many open files
- 关于出现too many open files异常
- Nginx服务器报 "Too Many Open Files"
- 性能测试出现FileNotFoundException: Too many open files的异常原因
- 运行在Linux系统上的Java程序可能会出现"Too many open files"
- 中间件kingshard入门(四):jmeter压测出现的问题too many open files
- 关于android中的too many open files(error 24)
- Solving the "Too many open files" exception in linux
- 解决openwrt上goagent报"Too many open files"错误的方法
- 今天运行MATLAB,由于处理文件太多出现:Too many files open; check that FILES = 20 in your CONFIG.SYS file
- “too many open files" ----增大打开的文件数
- android jni打开文件数 too many open files 解决方法
- Apache NIO 框架 Mina 使用中出现 too many open files 问题的解决办法
- java.se--异常--java.net.SocketException: Too many open files
- 使用php-simple-html-dom-parser遇到的create_debugger_socket("localhost", 9000) socket: Too many open files
- 使用Ecplise git commit时出现"There are no stages files"(异常解决)
- Linux: socket accept - "Too many open files"
- popen类似的打开函数, 失败出现Too many open files
- readdir时抛出异常:EMFILE, too many open files