If you’re using NetBeans as your IDE of choice, you’ve probably run into a situation where it scans your project folders for changes and consumes an absolute ridiculous amount of CPU/Memory. The problem I found after much annoyance is that infinitely looped symlinks will cause NetBeans to scan very very hard for essentially nothing.

I had a folder which contained a symlink to itself. It’s hard to find, but here’s a quick script to do it in your project directories:

find . -type l -print -ls

That’s it! if you see any suspicious links that seem to go back on itself, try removing them or adding them to your ignore list.