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 113982

Summary: [heapwalker] Cancel unneeded computation of fields / references
Product: profiler Reporter: Maksim Khramov <mkhramov>
Component: BaseAssignee: Jiri Sedlacek <jis>
Status: NEW ---    
Severity: blocker CC: issues, ovk
Priority: P3 Keywords: PERFORMANCE, VISUALVM
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 206105    

Description Maksim Khramov 2007-08-28 12:11:47 UTC
Product Version: NetBeans IDE Dev (Build 200708270000) 
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

Steps to reproduce:
Open any heapdump file. (I use an Netbeans heapdump and it has about 290000 instances of String).
Select java.lang.String class in classes view and open it in Instances view.
Select first instance in Instances pane using mouse.
- Update of Fields and References panes takes about 2 seconds.
Scroll through instances with keyboard (for example from 1 to 30 instance).
- Update of Fields and References panes takes more than a minute.
Comment 1 Tomas Hurka 2007-08-28 12:46:21 UTC
This happens only when you scroll through instances with keyboard. Lowering priority to P3.
Comment 2 Jiri Sedlacek 2007-10-01 10:20:43 UTC
I would say this is not scrolling but sequential selecting. There is an easy workaround for scrolling - use the
scrollbar. When explicitly selecting an instance, I would expect that you want to see the details for it.

Anyway, a fix will be implemented that cancels resolving fields/references when another instance is selected. Not for 6.0.
Comment 3 Jiri Sedlacek 2008-08-25 11:37:56 UTC
Seems to be fixed by faster computing the references - see Issue 139744. Changing to ENHANCEMENT as canceling unneeded
computations is still a valid improvement. 
Comment 4 Tomas Hurka 2009-04-08 12:54:57 UTC
Milestone cleanup: future->next