3

This morning when running npm start, I get the error:

System limit for number of file watchers reached

Because /proc/sys/fs/inotify/max_user_watches has returned to its initial value (8192) (How to Increase max_user_watches)

I'm on a new React@17 project with MaterialUI & formik. This post show the commands I ran to get started.

By modifying max_user_watches to 81920 it's work. However I would like to lower the consumption of my CPU/RAM

**How to tell my project (react VSC) to be less greedy **

No Name
  • 162
  • 1
  • 3
  • 6
  • Does this answer your question? [React Native Error: ENOSPC: System limit for number of file watchers reached](https://stackoverflow.com/questions/55763428/react-native-error-enospc-system-limit-for-number-of-file-watchers-reached) –  May 13 '22 at 14:30

1 Answers1

8

I was also facing the same problem and tried the following command,

sudo sysctl fs.inotify.max_user_watches=524288
Rajeesh Madambat
  • 3,231
  • 1
  • 11
  • 18
Syed Ali
  • 96
  • 1
  • 2