按照网上的各种教程 试了都不行,macOS bigsur 求解释,打开两三个 idea 几个软件 就提示
1
Satelli 2020-12-07 11:53:52 +08:00
试试通过 NVRAM 设置启动参数来打开服务器性能模式。
https://support.apple.com/zh-cn/HT202528 |
2
peterzhang0602 OP @Satelli 确定这开启么,笔记本啊😂
|
3
0x00ZhouJialei 2020-12-07 16:07:31 +08:00
|
4
riscv 2020-12-07 16:09:10 +08:00
ulimit -n 65535
|
5
PerFectTime 2020-12-07 16:11:50 +08:00
sudo launchctl limit maxfiles 64000 524288
最好加个 alias,遇到了就执行一下 |
6
peterzhang0602 OP @Satelli 没有用
|
7
cattyhouse 2020-12-07 23:02:57 +08:00
自己新建一个文件, 内容如下(cat /Library/LaunchDaemons/limit.maxfiles.plist):
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>limit.maxfiles</string> <key>ProgramArguments</key> <array> <string>launchctl</string> <string>limit</string> <string>maxfiles</string> <string>524288</string> </array> <key>RunAtLoad</key> <true/> <key>ServiceIPC</key> <false/> </dict> </plist> 然后运行: 开机启动 sudo launchctl load -w /Library/LaunchDaemons/limit.maxfiles.plist |