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 - org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.runWhenScanFinished: LowPerformance took 29238 ms.
Summary: org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.runWhenScanFinis...
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Mixed Development (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: petrk
URL:
Keywords: PERFORMANCE
: 256380 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-11-19 09:03 UTC by Exceptions Reporter
Modified: 2016-07-13 15:43 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 221246


Attachments
nps snapshot (478.20 KB, application/nps)
2015-11-19 09:03 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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. ***