I don't have much memory on my PC and a pretty weak processor. Although netbeans is by far my favorite IDE it is almost unbearable to use on my present computer because of the project scanning that starts automatically when I open the program.
Is there a way to prevent netbeans from scanning projects?
This below solved it for me. One project when opened would cause never ending background scanning... this would also mean the code completion etc could never work. My machine was devoting a huge amount of resources to this.
Someone here gave me the clue: right click the project, choose properties, then "Ignored Folders".
Essentially I used this to determine which (specific) folder was the cause of the scanning. I selected the first half, then the second half of the remaining etc a process of elimination... and out of hundreds of folders, I found a (php HMVC view folder that caused it) ... I needed to stop and kill the scanning, then re-start many times...
Here is the easiest way for various reasons:
In the "ignore folders" area, select all the folders and add them all (fairly individually) to the ignore list. Then shut down the ide, and restart. When all background scanning is absent (it starts and runs for a few seconds/minutes normally), begin removing one or a few of the folders. After each removal, close the properties window..... the IDE will quickly scan those folders you removed and will IF no issue with those stop scanning. IF you have just removed the culprit folder, then the scanning will never end...
If your project is a Maven structured project you can use a simple trick to make your and NetBeans life a lot easier.
I have my projects inside of c:\dev on my machine. That's the place where Netbeans is working with. If I build in this folder then NetBean's background process get very busy.
But if I copy the c:\dev\trunk project for example to c:\deploy\trunk before I start mvn clean install inside of c:\build\trunk then NetBeans does not need to scan the changes that happen in this folder. It does not know about it.
I use on a windows machine:
robocopy c:\dev\trunk c:\deploy\trunk /MIR /NFL /NS /NC /NDL /XD ".svn"
It is a windows native command. No additional installation necessary.
It helped me a lot decrease build time and also to avoid never ending scans on Netbeans.
If you use tools like JRebel you can still work like this when you update the changed classes to your c:\deploy\trunk folder. You can use the same command.
It is of course a bit of a workaround, but it helps a lot. :-)
My project became Very Big over time
In the below 2 cases, it is too slow:
What did not work for me are:
1. Doing Window > Reset Windows only solves temporarily
2. Sometimes felt my GIT repository integration with Netbeans is the main issue, but there was no clear proof for it
Solution for 1):
Run below commands:
WARNING Below commands have automated delete commands
And, the problem 1) is now rarely comes up, other times Netbeans loads almost immediately.
Solution for 2):
root
....f1
........f11
........f12
....f2
........f21
........f22
root is a folder and also it's the main NetBeans project
f1, f2 are just folders
f11, f12, f21, f22 are sub-folders that are also NetBeans projects too
Earlier, I was opening root Netbeans project, and the system became too slow due to netbeans scanning the whole project from root, and antivirus was working very hard to cooperate with Netbeans project scanning, result everything in system gets slow.
Now, the solution is open sub-projects like f11, f12, f21, f22, etc. you can open many small sub-project, the Netbeans project scanning issue is fully gone.
Try this: http://wiki.netbeans.org/ScanOnDemand
i know this is an old question but this may help others... To enable or disable background scanning you can find the option under menu Tools -> Options -> Miscellaneus -> Files
https://blogs.oracle.com/netbeansphp/entry/enable_auto_scanning_of_sources
Hey George I don't know if this is much of an answer but I right-click and choose 'close' on the projects that I don't need open. There's no point in having all your past projects listed there. Just have the one that you are developing open. You can always reopen the other projects from the menu. Once all the projects you aren't using are closed they won't be scanned each time you start Netbeans.