[Solved] Netbeans- Long running project scan

I use Netbeans for my daily web development. Sometimes I have very huge projects working with SVN, Git Version Controls. And sometimes I use the symlinks in my document root and other project folders. So, you might be wondering why I am mentioning all these things here, So lets get to the point.

Cause for Netbeans Long running projects task scanning ?
Direct from Netbeans bugzilla:: https://netbeans.org/bugzilla/show_bug.cgi?id=207214

Thanks for the snapshot. According the attached snapshot, it looks like org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.addRecursiveListener() doesn’t work correctly. It tries recursively add the listeners but never ends.

Guys do you have recursive links in your sources? I’m asking, just to be sure that it can be the reason for this behavior.

How to solve ?

Disable the recursive listener.

Add the below line to netbeans.conf file which is found in /etc/netbeans.conf in netbeans root folder.


Here is my netbeans.conf, I have added those lines in netbeans_default_options.

# ${HOME} will be replaced by JVM user.home system property

# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
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.zip.disableMemoryMapping=true –laf Nimbus -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=on -J-Dnetbeans.keyring.no.master=true -J-Dnetbeans.indexing.recursiveListeners=false”
#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.zip.disableMemoryMapping=true –laf Metal -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd”
# Note that default -Xmx and -XX:MaxPermSize are selected for you automatically.
# You can find these values in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx or
# -J-XX:MaxPermSize= here or on the command line.

# If you specify the heap size (-Xmx) explicitly, you may also want to enable
# Concurrent Mark & Sweep garbage collector. In such case add the following
# options to the netbeans_default_options:
# -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled
# (see http://wiki.netbeans.org/FaqGCPauses)

# Default location of JDK, can be overridden by using –jdkhome

netbeans_jdkhome=”/usr/lib/jvm/jdk1.7.0_05/”# Additional module clusters, using ${path.separator} (‘;’ on Windows or ‘:’ on Unix):

# If you have some problems with detect of proxy settings, you may want to enable
# detect the proxy settings provided by JDK5 or higher.
# In such case add -J-Djava.net.useSystemProxies=true to the netbeans_default_options.

In case if you wish to send your netbeans snapshot to developers then guide how to do it is https://blogs.oracle.com/netbeansphp/entry/is_the_ide_slow_send


1. https://netbeans.org/bugzilla/show_bug.cgi?id=207214
2. https://netbeans.org/bugzilla/show_bug.cgi?id=206461
3. http://wiki.netbeans.org/FaqScanningAndIndexingIssues

One Reply to “[Solved] Netbeans- Long running project scan”

Comments are closed.