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 262551 - [HeapWalker] Long computation of overview page
Summary: [HeapWalker] Long computation of overview page
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: VISUALVM
Depends on:
Blocks:
 
Reported: 2016-06-23 15:27 UTC by Tomas Hurka
Modified: 2016-06-29 01:47 UTC (History)
0 users

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 Tomas Hurka 2016-06-23 15:27:08 UTC
Steps to reproduce:
1) Open heapdump from exception report http://statistics.netbeans.org/analytics/exception.do?id=821777
2) Overview page is displayed after a long time (it takes 50 sec in my setup).
Comment 1 Tomas Hurka 2016-06-23 15:32:59 UTC
Normally Overview page is displayed almost instantly. Most of the time is spent in org.netbeans.modules.profiler.heapwalk.OverviewController.getOOMEThread() method. It takes a long time in this particular case, because tested heap dump contains a huge number of running threads (>11,000) and there a lot of stackframes.
Comment 2 Tomas Hurka 2016-06-24 20:20:22 UTC
Fixed in profiler-main

changeset:   298343:d4fe945ba36c
user:        Tomas Hurka <thurka@netbeans.org>
date:        Fri Jun 24 22:14:14 2016 +0200
summary:     bugfix #262551, speedup of getStackTraceBySerialNumber(), getStackFrameByID(), getClassNameBySerialNumber()

Overview is now displayed in 2 sec.
Comment 3 Quality Engineering 2016-06-29 01:47:19 UTC
Integrated into 'main-silver', will be available in build *201606290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d4fe945ba36c
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #262551, speedup of getStackTraceBySerialNumber(), getStackFrameByID(), getClassNameBySerialNumber()