Skip to content

Instantly share code, notes, and snippets.

@SyeedHasan
Last active January 12, 2022 08:47
Show Gist options
  • Select an option

  • Save SyeedHasan/741a472a9e4d7a9540124798dcc1e23e to your computer and use it in GitHub Desktop.

Select an option

Save SyeedHasan/741a472a9e4d7a9540124798dcc1e23e 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