Is there a way to stop NetBeans scanning projects?

2020-02-02 06:29发布

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?

标签: java netbeans
21条回答
我命由我不由天
2楼-- · 2020-02-02 06:32

In addition to creating smaller Projects for the folders you really work on and then a Project Group to group them (Mateng), you can try excluding folders that you will never work on such as images folders and so on. To ignore those folders, go to:

File > Project Properties > Ignored Folders > Add Folder...

From NetBeans Help:

The Ignored Files property is the opposite of the Include Path. These are files inside the PHP project that you want the IDE to ignore for FTP upload, scanning, etc.

查看更多
Fickle 薄情
3楼-- · 2020-02-02 06:32

My Netbeans 8.0.2 would crash on my Macbook pro due to "Scanning projects..." hogging up my CPU. I couldn't stop the process, however, I could make the process finish quicker by increasing the Java heap memory in netbeans.conf.

$ vi /Applications/NetBeans/NetBeans\ 8.0.2.app/Contents/Resources/NetBeans/etc/netbeans.conf

Replace this:

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true"

with:

netbeans_default_options="-J-client -J-Xss2m -J-Xms2048m -J-Xmx2048m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true"
查看更多
做自己的国王
4楼-- · 2020-02-02 06:35

Stop NetBeans scanning projects :

   Menu -> Tools -> Options -> Miscellaneus -> Files -> Uncheck Enabel auto-scanning

Stop Netbeans Scanning Project

查看更多
聊天终结者
5楼-- · 2020-02-02 06:38

I don't know whether you can disable the project scanning or not. Even if you can, I doubt it will ever work properly again. There are a few tips which I have done and it speed up my Netbeans.

  1. Close Tasks window. This prevents Netbeans to scan for TODO in the comments.
  2. Exclude virus scanning for *.jar, java folders and netbeans folder. This speeds up my netbeans A LOT.

Netbeans consumes a lot of memory so adding memory also increases its performance (OS does not need to swap between memory and page file when memory is running low) (but this is probably not an option for you). Also, Netbeans consists of hundreds of files which needs to be loaded at start up so the bottom neck is the speed of your hard disk.

查看更多
贼婆χ
7楼-- · 2020-02-02 06:38

I have the quickest and easiest way.

Just put the netbeans metadata to another location instead of putting it on the project directory

查看更多
登录 后发表回答