This situation is quite common for the IDE. They often use directory browsing for complex directory structures and many tens of thousands of files.
Two things can be noted:
To prevent this situation, it is recommended to increase the clock limit (for example, 512K). You can do this by adding the following line to the /etc/sysctl.conf file:
fs.inotify.max_user_watches = 524288
In this example, the system tracks 512k files.
- If you have a hard drive, it wonβt make it spin faster, and most likely itβs 80 to 120 IOPS (IO per second), and this is likely to be a performance bottleneck than you might like.
Like many I / O operations in Java, it is a wrapper around an object that is actually implemented by the OS.
source share