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 233471 - Slow scanning of NetBeans sources
Summary: Slow scanning of NetBeans sources
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-07-26 09:02 UTC by Petr Jiricka
Modified: 2013-08-31 01:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Profiler snapshot while the scan was in progress (344.56 KB, application/octet-stream)
2013-07-26 09:02 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2013-07-26 09:02:38 UTC
Created attachment 137849 [details]
Profiler snapshot while the scan was in progress

I have several modules open, and scanning is taking a very long time, it feels much slower than in 7.3.x. I am attaching the profiler snapshot.

I also noticed that the IDE takes up >1GB of RAM (my machine has 8GB). Not sure if this is intended.
Comment 1 Tomas Zezula 2013-07-26 09:27:12 UTC
>I also noticed that the IDE takes up >1GB of RAM (my machine has 8GB). Not sure
>if this is intended.
What is 1GB or RAM? VMS, RMS, HS?
Comment 2 Petr Jiricka 2013-07-26 09:42:33 UTC
The heap dump upload just finished, here it is: http://deadlock.netbeans.org/job/upload/ws/233471_2013-07-26_10-38-30_ab4422a3c975465c5cdf620aef17b18a.zip
Comment 3 Jan Lahoda 2013-08-16 12:29:55 UTC
Petr, it seems that the dump is taken from an IDE that runs with assertions enabled. Unless the test done on 7.3 was also with assertions enabled, could you please re-run the test on trunk with assertions disabled, and attach the profiler snapshot and heapdump from that situation? Thanks in advance.
Comment 4 Petr Jiricka 2013-08-16 12:35:21 UTC
Will try, not sure I can still reproduce.
Comment 5 Jan Lahoda 2013-08-28 14:07:49 UTC
Storing of end positions is made much less memory intensive. Lets see how that works:
http://hg.netbeans.org/jet-main/rev/1faae0e0036d
Comment 6 Quality Engineering 2013-08-31 01:29:23 UTC
Integrated into 'main-silver', will be available in build *201308310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1faae0e0036d
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #233471: updating javac-impl to get less memory intensive implementation of end positions store for identifiers and member selects