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 194451 - OpenProjectList.printMsg produces overwhelming amount of log data
Summary: OpenProjectList.printMsg produces overwhelming amount of log data
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 128692 191872
  Show dependency tree
 
Reported: 2011-01-18 20:06 UTC by Petr Jiricka
Modified: 2011-01-27 08:42 UTC (History)
2 users (show)

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 Petr Jiricka 2011-01-18 20:06:01 UTC
Umbrella bug 191872 contains several unrelated OOME problems, of which this is
projects-related:
http://statistics.netbeans.org/exceptions/exception.do?id=437533
Comment 1 Jesse Glick 2011-01-19 14:58:08 UTC
OpenProjectList.printMsg apparently was appending to a StringBuffer already at 35M chars. I guess this logging is not really so important that it can't be suppressed at some cutoff?
Comment 2 Jaroslav Tulach 2011-01-21 03:29:56 UTC
I guess we can remove the logging completely, as the problem is fixed for few years already.
Comment 3 Jesse Glick 2011-01-21 13:48:19 UTC
That's one option. I was thinking to just truncate anything over some modest length limit. (I don't know why the output was so voluminous in this particular case - many open projects? Some weird long label in one project? Heap dump might hold a clue but I did not spend too long looking at it.)

BTW gunzip on the dump.gz gives me an EOF error but gzip -d -c dump.gz > dump seems to produce a usable result.
Comment 4 Jan Lahoda 2011-01-21 18:18:26 UTC
FWIW, I have a heap dump where this char[] takes ~196MB - was trying to start IDE with ~1000 project opened.
Comment 5 Jaroslav Tulach 2011-01-24 19:57:37 UTC
ergonomics#0211de3cc325
Comment 6 Quality Engineering 2011-01-27 08:42:43 UTC
Integrated into 'main-golden', will be available in build *201101270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0211de3cc325
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #194451: Don't collect all the log messages anymore. The bugs associated with LazyProject nodes seem to be fixed for more than two years.