Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "External file changes sync may be slow: The current inotify(7) watch limit is too low." in PhpStorm

Been trying to research what this error "External file changes sync may be slow: The current inotify(7) watch limit is too low." means and how to fix it in PhpStorm but I seem not to be able to get around it. The message pops up every time I run PhpStorm. Any assistance will be highly appreciated.

like image 532
Alphy Gacheru Avatar asked Nov 29 '20 19:11

Alphy Gacheru


1 Answers

Try increasing the max_user_watches values and see if that fixes your issue. Open /etc/sysctl.conf with root permissions and change the fs.inotify.max_user_watches number to a bigger one.

fs.inotify.max_user_watches=524288

After modifying and saving the file, run sudo sysctl -p to apply the changes. Re-open PhpStorm and verify if the warning is gone.

like image 184
tamrat Avatar answered Sep 23 '22 06:09

tamrat