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 242079

Summary: org.netbeans.modules.editor.indent.IndentImpl.reformatLock: LowPerformance took 242833 ms.
Product: javaee Reporter: Exceptions Reporter <exceptions_reporter>
Component: Expression LanguageAssignee: Martin Fousek <marfous>
Status: RESOLVED DUPLICATE    
Severity: normal CC: goseta
Priority: P3 Keywords: PERFORMANCE
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 207769
Attachments: nps snapshot

Description Exceptions Reporter 2014-02-19 08:28:44 UTC
This bug was originally marked as duplicate of bug 183962, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 7

User Comments:
GUEST: When doing formatted paste. IDE was in debug mode (Java web app). It was like dead-lock, so I killed Tomcat, which helped IDE to wake up again.



Maximum slowness yet reported was 242833 ms, average is 242833
Comment 1 Exceptions Reporter 2014-02-19 08:29:17 UTC
Created attachment 145389 [details]
nps snapshot
Comment 2 Dusan Balek 2014-02-19 13:14:55 UTC
As can be seen from the attached snapshot, AWT EDT is blocked by
GsfReformatTask trying to acquire the parser lock while extremely slow ELHintsProvider task is in progress.
Comment 3 Martin Fousek 2014-02-19 14:07:33 UTC
As far as I saw "JsfVariablesModel.getModel" recreates the JsfVariablesModel every time when it's called and doesn't use the cached value at all. :/ There is missing synchronization but it's quite risky to add it there now because of one report we have so far. Targeting to the Next.
Comment 4 Martin Fousek 2014-07-25 06:27:54 UTC
Duplicate of issue #242541. Too many index accesses by getting composite components.

*** This bug has been marked as a duplicate of bug 242541 ***