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 171657 - Expand All usages result may run out of memory
Summary: Expand All usages result may run out of memory
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 171188
  Show dependency tree
 
Reported: 2009-09-07 18:10 UTC by Jan Pokorsky
Modified: 2009-09-15 09:59 UTC (History)
1 user (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 Jan Pokorsky 2009-09-07 18:10:41 UTC
The DBObject query finishes and releases memory properly now. The result appears as a collapsed project node. But when
you choose Expand All action it is horribly slow, blocks EDT and ends up with OOME quite often.

It is caused by loading documents to compute usage's line when nodes are created in CheckRenderer
(PositionBounds.getBegin().getLine()). Since the line information is used only for node's tooltip it should be possible
to postpone it to the moment when user hovers the mouse over the node and if possible not to load the document at all.
Comment 1 Jan Pokorsky 2009-09-08 15:41:29 UTC
fixed as jet-main/rev/954fd1877405

My measure of the DBObject query (6373 occurrences) shows 90% improvement for the Expand All action. I had to increase
the heap limit to measure something before the patch. Otherwise I got OOMEs.
Comment 2 Quality Engineering 2009-09-11 21:46:34 UTC
Integrated into 'main-golden', will be available in build *200909111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/954fd1877405
User: Jan Pokorsky <jpokorsky@netbeans.org>
Log: #171657: do not load document to render CheckNode