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 208440 - OOME in Profiling Point report
Summary: OOME in Profiling Point report
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-15 09:30 UTC by Jiri Sedlacek
Modified: 2012-03-03 11:31 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 Jiri Sedlacek 2012-02-15 09:30:43 UTC
Set stopwatch profiling point in method called many times, after profiling forawhile opened Profiling Points window and hit report:

java.lang.OutOfMemoryError: Java heap space 
  java.util.Arrays.copyOf(Arrays.java:2367) 
  java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130) 
  java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114) 
  java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415) 
  java.lang.StringBuilder.append(StringBuilder.java:132) 
  org.netbeans.lib.profiler.ui.components.HTMLTextArea.setText(HTMLTextArea.java:639) 
  org.netbeans.modules.profiler.ppoints.StopwatchProfilingPoint$Report.refresh(StopwatchProfilingPoint.java:213)
  org.netbeans.modules.profiler.ppoints.StopwatchProfilingPoint$Report.<init>(StopwatchProfilingPoint.java:154)
  org.netbeans.modules.profiler.ppoints.StopwatchProfilingPoint.getReport(StopwatchProfilingPoint.java:550) 
  org.netbeans.modules.profiler.ppoints.StopwatchProfilingPoint.showResults(StopwatchProfilingPoint.java:441)
  org.netbeans.modules.profiler.ppoints.ProfilingPoint$ResultsRenderer.handleLink(ProfilingPoint.java:109) 
  org.netbeans.lib.profiler.ui.components.table.HTMLLabelTableCellRenderer$1.showURL(HTMLLabelTableCellRenderer.java:77) 
  org.netbeans.lib.profiler.ui.components.HTMLLabel.hyperlinkUpdate(HTMLLabel.java:111) 
...
Comment 1 Jiri Sedlacek 2012-02-28 10:18:21 UTC
Introduced limit 1000 items for each profiling point report. Customizable via a system property, for example 'nbprofiler.ppoints.maxhits=10000'.

Fixed by http://hg.netbeans.org/profiler-main/rev/56486589143a.
Comment 2 Quality Engineering 2012-03-03 11:31:53 UTC
Integrated into 'main-golden', will be available in build *201203030400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/56486589143a
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #208440 - limit profiling point report to 1000 items (customizable via a system property)