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 178066 - NB 6.8Rc1 Hang while scanning projects : Out Of Memory
Summary: NB 6.8Rc1 Hang while scanning projects : Out Of Memory
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal with 2 votes (vote)
Assignee: Jan Lahoda
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2009-12-03 04:43 UTC by junqueira_raphael
Modified: 2009-12-18 12:29 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description junqueira_raphael 2009-12-03 04:43:33 UTC
same with previous versions of netbeans
some times on scanning my projects (after clean/build-all),
i get an OutOfMemory error (with headdump) many minutes while my ide keep freezed 

I have a new headdump (159M tgz) do you want it ?
Comment 1 Jan Lahoda 2009-12-03 06:27:16 UTC
Yes, please. Could you please upload it somewhere, for example on:
http://netbeans.org/projects/editor/downloads
(you need to be logged into nb.org before uploading?

Thanks.
Comment 2 Marian Mirilovic 2009-12-03 07:54:13 UTC
Decreasing the priority ... this is not a stopper for NB 6.8
Comment 3 deftex 2009-12-03 08:29:48 UTC
Same true on Mac OSX - terrible performance!
Comment 4 junqueira_raphael 2009-12-03 08:46:15 UTC
I don't have right access to downloads section.

Yes it should not be a stopper as many NB versions have the same problem (but i get it more times using NB6.8rc1)
Comment 5 Tomas Pavek 2009-12-04 10:07:07 UTC
junqueira_raphael, I've added you to 'performance' project, you should now be able to upload here:
http://netbeans.org/projects/performance/downloads

See also here for more info how you can report scanning-related problems:
http://wiki.netbeans.org/FaqScanningAndIndexingIssues
Comment 6 deftex 2009-12-08 07:43:44 UTC
This IS a showstopper. 6.8RC2 is no better on Mac OSX. Seems to continually rescan projects, rendering IDE unusable. Eventually IDE hangs altogether.
Comment 7 Marian Mirilovic 2009-12-08 07:47:19 UTC
(In reply to comment #6)
> This IS a showstopper. 6.8RC2 is no better on Mac OSX. Seems to continually
> rescan projects, rendering IDE unusable. Eventually IDE hangs altogether.

Could you please share with us a project you are working on ? (send to my email directly, will be used only for testing purposes)
Comment 8 martinf55 2009-12-15 10:37:29 UTC
Still an issue in 6.8 Final on OSX.

Scanning thread uses high CPU, making IDE unusably sluggish, and memory consumption increases. The Navigator pane refuses to switch to the currently open class and no code-completion works.
IDE requires a Force Quit (the stuck thread seems to prevent it quitting normally).

I have two PHP projects loaded, one is an install package, the other the running web site.
Both projects contain the PHPExcel classes.
The web site contains the MODx CMS.

Recent editing/debugging has involved calling PHPExcel classes so I suspect something in there is confusing it, although the IDE is obviously built to handle the same classes being present twice.
Comment 9 Jan Lahoda 2009-12-18 12:29:50 UTC
Sorry, but there is not enough information to evaluate were the problem (or problems) is. For the original report, the head dump is needed. If something is slow, a few thread dumps, or a "Profile Me" snapshot:
http://wiki.netbeans.org/GenerateThreadDump
http://wiki.netbeans.org/FaqProfileMeNow
should show us where to start search for a problem (if the IDE seems to be tight on memory a heap dump, or at least heap histogram, is a better starting point).

A log from the scanning process could also be useful, can be produced using this command line option:
-J-Dorg.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.level=FINE
(note the logs can be quite huge, and may contain paths/file names.)

Please also see a wiki pages that relate to the scanning process in the IDE:
http://wiki.netbeans.org/FaqScanningAndIndexingIssues
http://wiki.netbeans.org/FaqScanningAndIndexingPerformanceHints

Thank you very much.