How to improve Netbeans performance?

前端 未结 29 1960
情书的邮戳
情书的邮戳 2020-12-22 17:30

Is there a real way to get Netbeans to load and work faster?

It is too slow and gets worse when you have been coding for some time. It eats all my RAM.


29条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-22 17:31

    A more or less detailed description, why NetBeans if slow so often can be found in the article:

    Boost your NetBeans performance

    First. check what NetBeans is actually doing on your disk. On a Mac you can issue this command:

      sudo fs_usage | grep /path/to/workspace
    

    In my special case I got a directory which didn't exist any longer, but NetBeans tries to access the folder all the time:

      14:08:05 getattrlist /path/to/workspaces/pii 0.000011 java
    

    Repeated many, many, many times. If you have a similar problem, fix it by deleting your NetBeans cache folder here:

       ~/.netbeans/6.8/var/cache
    

    If your NetBeans.app is still making a lot of disk I/O. Check if it's accessing the subverison folders and svncache.

    I had to disable the subversion features with config file:

      ~/.netbeans/VERSION/config/Preferences/org/netbeans/modules/versioning.properties 
    

    add a line:

      unversionedFolders=FULL_PATH_TO_PROJECT_FOLDER  
    

    SOURCE: Netbeans forums

    IMHO it's mainly related to a lot of disk I/O caused by missing files or folders and svncache.

提交回复
热议问题