How to improve Netbeans performance?

前端 未结 29 1744
情书的邮戳
情书的邮戳 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:50

    If its on a corporate machine - make sure that the caches aren't stored on the network

    0 讨论(0)
  • 2020-12-22 17:51

    deactivate Git, Subversion, Local History, Spell checker and other unused plugins

    0 讨论(0)
  • 2020-12-22 17:52

    Verify if your project folder has a folder that contains files of your framework, or libraries (Ex.: The Laravel has a folder vendor) - files that you not use directly. Click on your "project" > properties. In left side, select "ignore folders" (I don't no how is in english, but is before 'Frameworks'). In right side, click on "add folder", chose de folders - this will make your Netbeans 8 faster. It works for me.

    0 讨论(0)
  • 2020-12-22 17:53

    Simplest solution:

    Go to Preferences->Editor and Disable: Auto Popup Completion Window

    Use: Meta key + \ instead when you need code completion.

    The biggest problem I found was the auto code completion feature. As I typed, it kept on trying to run code completion the whole time. This was causing really slow performance since my project has a lot of libraries that it depends upon.

    The best thing of all is you can stop fighting the editor as it keeps picking up false positives in the completion popup.

    Have not looked back since I switched this off.

    0 讨论(0)
  • 2020-12-22 17:54

    Really useful article about reasons why your NetBeans is slow:

    http://wiki.netbeans.org/FaqSlowNetBeans

    0 讨论(0)
  • 2020-12-22 17:54

    Try to profile Netbeans using VisualVM. If the "hot spot" is org.gnome.accessibility.atkwrapper.emitsignal(), try to run Netbeans with

    -J-Djavax.accessibility.assistive_technologies=" "

    It helped a lot in my case.

    I don't really know why exactly this toolkit used, but looks like it's generally safe to disable it.

    0 讨论(0)
提交回复
热议问题