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 157023 - High memory usage on "Scanning projects ..."
Summary: High memory usage on "Scanning projects ..."
Status: RESOLVED DUPLICATE of bug 147656
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-19 06:39 UTC by kovica
Modified: 2009-02-19 21:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
High memory consumption (113.69 KB, image/png)
2009-01-19 06:40 UTC, kovica
Details
messages.log (62.64 KB, text/plain)
2009-01-19 09:58 UTC, kovica
Details
netbeans.conf (1.94 KB, text/plain)
2009-01-19 09:59 UTC, kovica
Details
histo when NetBeans started (382.31 KB, text/plain)
2009-01-19 10:26 UTC, kovica
Details
histo after Scanning Projects (419.78 KB, text/plain)
2009-01-19 10:27 UTC, kovica
Details
patched javac (1.17 MB, application/octet-stream)
2009-01-20 12:07 UTC, Dusan Balek
Details
New mesages.log (70.59 KB, text/plain)
2009-01-20 12:33 UTC, kovica
Details
messages.log with FINEST (512.34 KB, application/x-compressed)
2009-02-03 07:13 UTC, kovica
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kovica 2009-01-19 06:39:44 UTC
I'm using:
Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.6.0_11; Java HotSpot(TM) 64-Bit Server VM 11.0-b16
System: Linux version 2.6.27-7-server running on amd64; UTF-8; sl_SI (nb)

with all updates installed.
I have 7 projects opened with around 100 jar files in several Libraries linked to them. I also have couple of Libraries,
pointing to directories with classes, linked to those projects. I'm also using Java Platforms JDK 1.6 (default) and JDK
1.4.2 and when I switch from one to the other on the largest project the memory consumption goes over the roof, up to
700MB. Because of this I have to specify -J-Xmx1024m in netbeans.conf or I get a lot of OutOfMemoryErrors. I've never
had to do that in previous version of NetBeans.
I've even tried with a clean USERDIR.
Comment 1 kovica 2009-01-19 06:40:28 UTC
Created attachment 75959 [details]
High memory consumption
Comment 2 Peter Pis 2009-01-19 08:46:34 UTC
Could you please attach "messages.log"?
Comment 3 kovica 2009-01-19 09:58:55 UTC
Created attachment 75969 [details]
messages.log
Comment 4 kovica 2009-01-19 09:59:32 UTC
Created attachment 75970 [details]
netbeans.conf
Comment 5 Dusan Balek 2009-01-19 10:05:22 UTC
Could you please create a jmap histogram and attach it ot this issue? Thanks.
Comment 6 kovica 2009-01-19 10:26:12 UTC
Created attachment 75973 [details]
histo when NetBeans started
Comment 7 kovica 2009-01-19 10:27:03 UTC
Created attachment 75974 [details]
histo after Scanning Projects
Comment 8 Dusan Balek 2009-01-20 12:07:07 UTC
Created attachment 76035 [details]
patched javac
Comment 9 kovica 2009-01-20 12:14:47 UTC
Should I do something with it ?
Comment 10 Dusan Balek 2009-01-20 12:17:13 UTC
Could you please run your NetBeans with the patched javac (some additional logging added) and attach the new
messages.log?  You can do it simply by putting the attached javac-impl-nb-7.0-b07.jar into netbeans/java2/modules/ext
directory. Don't forget to clean your userdir. Thanks.
Comment 11 kovica 2009-01-20 12:33:22 UTC
Created attachment 76038 [details]
New mesages.log
Comment 12 kovica 2009-01-20 12:34:27 UTC
I've delete $USERDI/var/cache directory, started NetBeans, so the cache got updated and then changed Java Platform on
the largest project.
Comment 13 farcat 2009-01-30 19:42:35 UTC
for me scanning projects keeps scanning forever. I reinstalled Netbeans 6.5 today, cleaned out my project until only
source files where left, reinstalled java SDK (current version) and still the same. It seems worse with the last update
(since 24 updates were installed, i don't know which one). This was with my previous install and with the my current one. 

Can it have something to with parsing generics, Netbeans has had strange freezes since i started using generics
extensively. I cannot exit Netbeans either. java.exe keeps running (full processor thread i.e. 50%) when i kill the
netbaens.exe process.

Just copied back and forth a file to another project (i abuse for a quick backup) with what i thought might be
problematic source code and for now Netbeans works again. odd.

I am just putting in some observations, hoping that someone will have a brainwave.
  
Comment 14 Jiri Prox 2009-02-02 10:26:30 UTC
farcat:
Please run IDE with fresh userdir and with switch:
-J-Dorg.netbeans.modules.java.source.usages.RepositoryUpdater.level=FINEST
a attach the log file here.

Thanks

Comment 15 kovica 2009-02-03 07:13:48 UTC
Created attachment 76495 [details]
messages.log with FINEST
Comment 16 Dusan Balek 2009-02-03 12:56:38 UTC
Base on jmap histogram, duplicate of #147656.

*** This issue has been marked as a duplicate of 147656 ***