mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
40 lines
902 B
Markdown
40 lines
902 B
Markdown
## How to increase maxfiles on macOS
|
|
|
|
To increase maxfiles on macOS, create the following file:
|
|
|
|
(Note: you'll need to use sudo)
|
|
|
|
/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>
|
|
<string>524288</string>
|
|
</array>
|
|
<key>RunAtLoad</key>
|
|
<true/>
|
|
<key>ServiceIPC</key>
|
|
<false/>
|
|
</dict>
|
|
</plist>
|
|
```
|
|
|
|
Execute the following command:
|
|
```
|
|
sudo chown root:wheel /Library/LaunchDaemons/limit.maxfiles.plist
|
|
```
|
|
|
|
Reboot.
|
|
|
|
To check if it's working, you can use `ulimit -n` command.
|