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 215352 - LowPerformance took 90260 ms. tooltip -> MavenProjectNode.getDescription() loads a maven project
Summary: LowPerformance took 90260 ms. tooltip -> MavenProjectNode.getDescription() lo...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2012-07-10 13:38 UTC by gerzhedowich
Modified: 2012-11-08 02:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 189215


Attachments
nps snapshot (2.33 MB, application/nps)
2012-07-10 13:39 UTC, gerzhedowich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gerzhedowich 2012-07-10 13:38:44 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-9325-on-20120622)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.0-b10, Java(TM) SE Runtime Environment, 1.7.0_02-b13
OS: Windows 7
Maximum slowness yet reported was 90260 ms, average is 80210
Comment 1 gerzhedowich 2012-07-10 13:39:41 UTC
Created attachment 121888 [details]
nps snapshot
Comment 2 Milos Kleint 2012-07-16 13:33:55 UTC
most likely caused by general lack of free memory, the SoftReference holding MavenProject instance was freed and later on reloaded during the call in the stack
Comment 3 Milos Kleint 2012-11-07 15:06:46 UTC
http://hg.netbeans.org/core-main/rev/1f26b3b97b7b

open projects hard-reference the MavenProject instance, so that it never gets released, it's required all the time anyway and is immediately recreated  after GC
Comment 4 Quality Engineering 2012-11-08 02:54:51 UTC
Integrated into 'main-golden', will be available in build *201211080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1f26b3b97b7b
User: Milos Kleint <mkleint@netbeans.org>
Log: #194908, #215352 when project is open, use hard reference to keep MavenProject always around, before it gets opened and after it gets closed, keep on using the SoftReference