Skip to content

Instantly share code, notes, and snippets.

@morristech
Forked from SyeedHasan/Watchman Issues on Linux
Created January 12, 2022 08:47
Show Gist options
  • Select an option

  • Save morristech/76eb148bb476409f0496b45f11443e3d to your computer and use it in GitHub Desktop.

Select an option

Save morristech/76eb148bb476409f0496b45f11443e3d to your computer and use it in GitHub Desktop.
1. To increase inotify watches on Watchman, run:
echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_watches && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_queued_events && echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_instances && watchman shutdown-server
2. If a watchman crawl fails, run:
watchman shutdown-server; WATCHMAN_CONFIG_FILE=~/watchman watchman --foreground --logfile=/dev/stdout --no-save-state --statefile=/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment