NetBeans error 8: Java heap error when starting the IDE

Every time I start my NetBeans 8.0.1 I get an unexpected exception: Java heap space.

I am not running any programs in NetBeans, it happens when "Background Scan for Projects" is running (I have multiple node and angular projects).

I have increased the JVM heap size in the netbeans config as stated here:
http://wiki.netbeans.org/FaqSettingHeapSize

... changed the GC as mentioned here:
http://wiki.netbeans.org/FaqGCPauses

... and added some of the other options suggested on this site, eg. here:
stackoverflow question/2175615 / ...

These are my options in the config file:

netbeans_default_options="-J-client -J-Xss2m -J-Xms256m -J-Xmx512m -J-XX:PermSize=256m  -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-Xverify:none"

      

Increasing Xmx and Permsize to 2048/1024 or uninstalling them so that Netbeans will install it automatically doesn't help either.

Also, setting the VM-Options of the project itself as statet here:
Java Explicit Space in netbeans .. but I've already increased the heap size!
... doesn't help because this option doesn't exist in my projects.

What else can I try?

+3


source to share





All Articles