This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 199697

Summary: Huge memory consumption when parsing large C/C++ project
Product: cnd Reporter: _ rsmogura <rsmogura>
Component: Code ModelAssignee: issues@cnd <issues>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description _ rsmogura 2011-06-25 19:35:28 UTC
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!
Comment 1 Vladimir Voskresensky 2011-06-25 19:39:21 UTC
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
Comment 2 Vladimir Voskresensky 2011-06-25 19:41:35 UTC
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
Comment 3 Vladimir Voskresensky 2012-04-03 18:41:55 UTC

*** This bug has been marked as a duplicate of bug 197297 ***