When I import/parse large C/C++ the whole heap memory is consumed. When I right click on Project/Code assistance and when I unmark C/C++ Code Assistance, memory consumption is quite well.
The good test environment will be Linux sources, download it and build with common "desktop" options - more *.o files more parsing - turn debugging sumbols under Kernel hacking tree. Then import it to Netbeans.
I had reserved 2GB heap, and parsing was out of memory at 30% (only garbage collector was warking), this means that I should have about 8GB stack!
thanks for the report.
And you are right. Btw, if you use 64bit java you can reduce memory consumption about twice by using 32bit version.
I think we discuss the same issue in the report http://netbeans.org/bugzilla/show_bug.cgi?id=197297
as workaround I can propose you to create project from binary files (one project per binary) => you will have multi projects, but they should fit into memory better if opened not all at once
*** This bug has been marked as a duplicate of bug 197297 ***