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 256679

Summary: org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.runWhenScanFinished: LowPerformance took 29238 ms.
Product: cnd Reporter: Exceptions Reporter <exceptions_reporter>
Component: Mixed DevelopmentAssignee: petrk
Status: VERIFIED FIXED    
Severity: normal CC: gekannt, manoelmarins, vkvashin, wshackleAtGmail
Priority: P3 Keywords: PERFORMANCE
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 221246
Attachments: nps snapshot

Description Exceptions Reporter 2015-11-19 09:03:11 UTC
This bug was originally marked as duplicate of bug 237443, 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.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.55-b03, Java(TM) SE Runtime Environment, 1.7.0_55-b13
OS: Windows 7

User Comments:
GUEST: Just working with 4 maven projects. Netbeans performance is terribly slow.I tried to improve it by setting GC options
-J-XX:+UseParallelGC -J-XX:+UseAdaptiveSizePolicy -J-XX:CompileThreshold=100 -J-Dsun.java2d.opengl=true

but the attempt has no result.
I think you have some architectural omission. For example, if I have maven pom project with about 100000 HTML resources (html, pictures, css, etc) , why you scanning these files continuously!?



Maximum slowness yet reported was 29238 ms, average is 29238
Comment 1 Exceptions Reporter 2015-11-19 09:03:17 UTC
Created attachment 157404 [details]
nps snapshot
Comment 2 Tomas Zezula 2016-01-08 12:08:07 UTC
The JaaContextSupport.resolveContext() calls JavaSource.runWhenScanFinished() in EDT.
The JS.rWSF does parsing and should not be called in EDT.
Comment 3 petrk 2016-01-21 13:47:44 UTC
Fixed at enum: 305594:7fbc48da27cb and 305632:fdd8b83e6c4e
Comment 4 Quality Engineering 2016-01-23 02:21:38 UTC
Integrated into 'main-silver', will be available in build *201601230002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/339116ef7677
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixing #256679 - org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.runWhenScanFinished: LowPerformance took 29238 ms
(transplanted from 7fbc48da27cb1e4c37664288166d99964ea68be4)
Comment 6 Quality Engineering 2016-01-28 02:34:45 UTC
Integrated into 'main-silver', will be available in build *201601280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5a069130c5b1
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #256679 - org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.runWhenScanFinished: LowPerformance took 29238 ms
(transplanted from 74df27300344a53161980a70d4a844ccd9fa363c)
Comment 7 petrk 2016-07-13 15:43:12 UTC
*** Bug 256380 has been marked as a duplicate of this bug. ***