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 159723

Summary: "Loading Heap Dump..." needs better progress indicator
Product: profiler Reporter: Jesse Glick <jglick>
Component: BaseAssignee: Tomas Hurka <thurka>
Status: RESOLVED FIXED    
Severity: blocker CC: issues
Priority: P4 Keywords: PERFORMANCE, VISUALVM
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2009-03-05 21:37:01 UTC
I am trying to load a 529Mb heap dump in the IDE. My IDE uses default max heap for my 3.2Gb RAM, i.e. 512Mb. The
progress bar has been showing "Loading Heap Dump..." for several minutes now, with heavy disk activity. There is no
indication of what percentage of the heap dump has been loaded. If it is simply too big to handle and I need to stop
loading it, it seems that I would need to restart the IDE, since there is no cancel button either.

BTW its activity:

	at java.nio.DirectByteBuffer.putInt(DirectByteBuffer.java:654)
	at org.netbeans.lib.profiler.heap.LongMap$MemoryMappedData.putInt(LongMap.java:481)
	at org.netbeans.lib.profiler.heap.LongMap.putID(LongMap.java:289)
	at org.netbeans.lib.profiler.heap.LongMap.put(LongMap.java:252)
	at org.netbeans.lib.profiler.heap.HprofHeap.computeInstances(HprofHeap.java:361)
	at org.netbeans.lib.profiler.heap.ClassDump.getInstancesCount(ClassDump.java:195)
	at org.netbeans.lib.profiler.heap.ComputedSummary.<init>(ComputedSummary.java:67)
	at org.netbeans.lib.profiler.heap.HprofHeap.getSummary(HprofHeap.java:261)
	at org.netbeans.modules.profiler.heapwalk.HeapWalker.createHeap(HeapWalker.java:217)
	at org.netbeans.modules.profiler.heapwalk.HeapWalker.<init>(HeapWalker.java:96)
Comment 1 Jesse Glick 2009-03-05 21:38:07 UTC
Finally done! My IDE's heap usage is not up by much, which is good.
Comment 2 Tomas Hurka 2009-04-14 11:30:44 UTC
Fixed in profiler-main
changeset:   126596:a8b4f56727ee
user:        Tomas Hurka <thurka@netbeans.org>
date:        Tue Apr 14 12:29:23 2009 +0200
summary:     bugfix #159723, progress indicator for 'Loading Heap Dump' added

Comment 3 Quality Engineering 2009-04-16 08:04:31 UTC
Integrated into 'main-golden', will be available in build *200904160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a8b4f56727ee
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #159723, progress indicator for 'Loading Heap Dump' added