Exclude folders in fsnotifier64 process

I have a php+yii2 huge project, and I have an issue with fsnotifier64 process and excluded folders. I configured two next folders as excluded:

- web/assets
- web/uploads

Both folders have a huge amount of files (~10K), and I dont want to be indexed so I excluded it. The problem is that every time I open IDE, or change branch... indexing starts againg (thats ok, and its really fast), but the problem is that fsnotifier64 process starts to scan all folders in root, including those excluded folders.

With "fatrace", I see lines like the next every secondo:

fsnotifier64(11880): C [webproject_root]/web/uploads/product/f4e2c9a5

This process can take more than an hour, and my computer is really slow in this period :(

What can I do?

Thanks a lot!

0

Do you have those folders in File | Settings | Languages & Frameworks | PHP > Include Path? 

Do you have a "." folder listed there also (if you do - remove it)? 

Are there any symlinks in a projects pointing to assets or uploads?

0
Avatar
Permanently deleted user

I checked your suggestion,  but no luck.  In "include Path" only have ~/vendor, and there is no "." folder o symlinks...

I also am using docker, that "mounts" /uploads in the docker container, maybe it can be the cause of the problem?

0
Avatar
Permanently deleted user

I stopped docker, but fsnotifier64 keeps opening an closing files in the excluded folders, so dockers seems not to be the problem

0

Is it displayed as "Indexing" or "Scanning files to index" in IDE? 

0
Avatar
Permanently deleted user

No it does not.

"indexing" starts on every change of project, branch etc (as usual), and ends really fast, but "fsnotifiers64" keeps reading files...

As aditional info, this problem occurs on the last 3 versions of phpstorm that I installed. Today I updated, but same problem :(

0

Do you have File Watchers configured? Try to disable them for a test.

0
Avatar
Permanently deleted user

Sorry, no file watchers :(

More things that I checked: every time I change branch, pull, push in other projects (while the "problematic project" is still open in other instance), fsnotifier64 starts reading those folders. I am going to recreate the project, maybe something is corrupt there.

Thanks a lot for your help Dmitry

0
Avatar
Permanently deleted user

I am still having the same problem. I checked that fsnotifier64 is accesing even to .git folders, and folders in recently closed projects.

Is there anything that I can do to give you more info and try to find out the cause of this problem?

Thanks!

 

 

0

Could you please reproduce this (i.e. a branch change) and upload somewhere idea.log file so we could inspect it?

0

请先登录再写评论。