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.
Summary: | The PrintStreamLogger flush thread may starve, memory not freed | ||
---|---|---|---|
Product: | ide | Reporter: | Svata Dedic <sdedic> |
Component: | Logger | Assignee: | Martin Entlicher <mentlicher> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Proposed patch |
Description
Svata Dedic
2017-01-16 19:20:19 UTC
Created attachment 163414 [details]
Proposed patch
pls. review proposed patch + test. The intention is to
a/ start flush thread if the buffer size exceeeds some threshold, so the Logger receives output even while the data is still produced at rapid rate.
b/ after the activity that requires large buffer ceases, the buffer is eventually recycled to reclaim (presumably) large memory.
Integrated into 'main-silver', will be available in build *201703010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/583524e1647d User: Svata Dedic <sdedic@netbeans.org> Log: #269576: printstream flushed in parallel if large data is written to it |