sysctl: unknown oid 'fs.inotify.max_user_watches' macos

Viewed 1256

When I try to set fs inotify max user watches on macOS, I get error

sysctl: unknown oid 'fs.inotify.max_user_watches'

Could you help me to solve this problem?

1 Answers

Try

sudo sysctl -w kern.maxfiles=524288
sudo sysctl -w kern.maxfilesperproc=524288
Related