For large projects 250,000 files the infrastructure itself consumes significant amount of memory due to several collections. It may be possible to replace at least some of them by bit masks.
Fixed jet-main 75b56e71bea9
Integrated into 'main-golden', will be available in build *201211190002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Tomas Zezula <email@example.com>
Log: #222280:Reduce memory consumption in scanning infrastructure