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 246542

Summary: UI freeze for tens of seconds
Product: ide Reporter: Tomas Mysik <tmysik>
Component: LoggerAssignee: Martin Entlicher <mentlicher>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: thread dump

Description Tomas Mysik 2014-08-19 09:12:10 UTC
Created attachment 148758 [details]
thread dump

The IDE suddenly froze for tens of seconds. It seems that the logger is the cause, see the attachment.

Thanks.
Comment 1 Martin Entlicher 2014-08-19 11:42:10 UTC
The logger is blocking AWT thread, because it's likely, that recordsToWriteOut.get() > MAX_RECORDS_TO_WRITE_OUT and we prevent from OOME by waiting on the write task.
We could perhaps make the write more efficient. Also, we can consider reducing multiple identical logs into one and report the count.