Android studio Mac (Too many open files)

Mac 上Android studio变异报错:

Too many open files

Mac对文件的限制,需要改下系统配置即可:

 

1
2
3
4
5
6
7
8
9
10
11
12
13
weichun@ZBMac-C02DV1K99 /etc % sysctl kern.maxfiles
kern.maxfiles: 10240
weichun@ZBMac-C02DV1K99 /etc % sysctl kern.maxfilesperproc
kern.maxfilesperproc: 2048
weichun@ZBMac-C02DV1K99 /etc % sysctl -w kern.maxfiles=20480
kern.maxfiles: 10240
sysctl: kern.maxfiles=20480: Operation not permitted
weichun@ZBMac-C02DV1K99 /etc % sudo sysctl -w kern.maxfiles=20480
Password:
kern.maxfiles: 10240 -> 20480
weichun@ZBMac-C02DV1K99 /etc % sudo sysctl -w kern.maxfilesperproc=18000
kern.maxfilesperproc: 2048 -> 18000
weichun@ZBMac-C02DV1K99 /etc %

  

posted @   狂奔的小狮子  阅读(635)  评论(0编辑  收藏  举报

点击右上角即可分享
微信分享提示