How to improve Netbeans performance?

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

    Close all the instences you have running. You might not have closed any of them in a while causing them to stack up and run in the background. Therefore causing lag/making the program work slower.

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

    Very simple solution to the problem when your NetBeans or Eclipse IDE seems to be using too much memory:

    1. Disable the plugins you are not using.
    2. close the projects you are not working on.

    I was facing similar problem with Netbeans 7.0 on my Linux Mint as well Ubuntu box. Netbeans was using > 700 MiB space and 50-80% CPU. Then I decided do some clean up. I had 30 plugins installed, and I was not using most of them. So, I disabled the plugins I was not using, a whopping 19 plug ins I disabled. now memory uses down to 400+ MiB and CPU uses down to 10 and at max to 50%.

    Now my life is much easier.

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

    We can use the following JVM option to make NetBeans load/run bit faster.

    JVM Option: -J-Xverify:none

    • this option tells JVM not to verify byte-code during class loading and avoids preloading unnecessary classes.

    How to set:

    Edit the file C:\Program Files\NetBeans <version>\etc\netbeans.conf (check your NetBeans installation folder if you installed it in another location)

    • Find the line that says

      netbeans_default_options="..."

    • Add the option -J-Xverify:none to the list of options.

    • Restart NetBeans.

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

    This works for me:

    netbeans_default_options="-J-client -J-Xverify:none -J-Xmx1024m -J-Xss2m -J-Xms256m -J-XX:PermSize=32m -J-Dnetbeans.logger.console=true -J-ea -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 -J-Dplugin.manager.check.updates=false -J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes"

    Settings in the etc/netbeans.conf.

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

    Everyone should note that Sun's Java Virtual Machine for Windows does not use shared memory. This means that the more heap you give to your VM, the more memory it keeps to itself. The advantage of more heap is less garbage-collection, and perhaps faster performance of the Java application you're running, but the downside is that your other applications may have less memory to work with, and your system may feel slower due to this.

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

    For me worked out to enable auto-scanning of sources.

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