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 169864 - 17s of blocked AWT while using profiling points
Summary: 17s of blocked AWT while using profiling points
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL: http://statistics.netbeans.org/except...
Keywords: PERFORMANCE
: 169058 169366 169426 169996 (view as bug list)
Depends on:
Blocks: 169872
  Show dependency tree
 
Reported: 2009-08-05 09:22 UTC by Pavel Flaska
Modified: 2009-11-01 10:56 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 154963


Attachments
nps snapshot (26.70 KB, bin/nps)
2009-08-05 09:22 UTC, Pavel Flaska
Details
nps snapshot (48.72 KB, bin/nps)
2009-08-26 08:21 UTC, matusdekanek
Details
nps snapshot (15.94 KB, bin/nps)
2009-10-07 06:28 UTC, gtg
Details
nps snapshot (14.66 KB, bin/nps)
2009-10-07 07:23 UTC, gtg
Details
nps snapshot (26.29 KB, bin/nps)
2009-10-07 07:49 UTC, gtg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Flaska 2009-08-05 09:22:26 UTC
Build: NetBeans IDE Dev (Build 090731)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Linux, 2.6.28-11-generic, i386
Maximum slowness yet reported was 17287 ms, average is 17287
Comment 1 Pavel Flaska 2009-08-05 09:22:43 UTC
Created attachment 85813 [details]
nps snapshot
Comment 2 Jiri Sedlacek 2009-08-05 10:50:26 UTC
The code on profiler side haven't changed for a long time, this looks to be caused by a change in handling FileObject
changes by org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.getOwningSourceRoot().

See thread "pool-3-thread-1", the profiler updates a config file in
"org.netbeans.modules.profiler.ppoints.ProfilingPointFactory.storeSettings()" which fires the event in
"org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.fireFileChangedEvent()" handled by the RepositoryUpdater.

On profiler side we can limit touching the config file, however the main problem caused by expensive processing each
file change needs to be fixed.
Comment 3 Vitezslav Stejskal 2009-08-06 09:57:55 UTC
URL -> FileObject translation seems to be the main bottleneck. Perhaps we should keep the roots in the form of FileObjects.
Comment 4 Vitezslav Stejskal 2009-08-07 13:02:03 UTC
getOwningSourceRoot(FileObject) should now be faster - http://hg.netbeans.org/jet-main/rev/ef87c47bc6f9
Comment 5 Vitezslav Stejskal 2009-08-07 13:10:30 UTC
*** Issue 169996 has been marked as a duplicate of this issue. ***
Comment 6 Vitezslav Stejskal 2009-08-07 13:17:23 UTC
*** Issue 169058 has been marked as a duplicate of this issue. ***
Comment 7 Vitezslav Stejskal 2009-08-07 21:33:17 UTC
http://hg.netbeans.org/jet-main/rev/fe8cac45ae4b
Comment 8 Quality Engineering 2009-08-08 07:05:20 UTC
Integrated into 'main-golden', will be available in build *200908080201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ef87c47bc6f9
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #169864: speading up getOwningSourceRoot(FileObject)
Comment 9 Vitezslav Stejskal 2009-08-12 12:48:24 UTC
*** Issue 169426 has been marked as a duplicate of this issue. ***
Comment 10 Exceptions Reporter 2009-08-26 08:21:37 UTC
This issue has appeared again => reopenning, see exception reporter for more data
Comment 11 matusdekanek 2009-08-26 08:21:43 UTC
This issue was originally marked as duplicate of issue 169864, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related.

Build: NetBeans IDE Dev (Build 200908221401)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Linux, 2.6.28-15-generic, i386

User Comments: 
inserting a new line into the source code (after typing '/**')
Maximum slowness yet reported was 29142 ms, average is 9802
Comment 12 matusdekanek 2009-08-26 08:21:48 UTC
Created attachment 86668 [details]
nps snapshot
Comment 13 Vitezslav Stejskal 2009-08-27 14:13:31 UTC
The exception reporter is most likely referring to http://statistics.netbeans.org/analytics/exception.do?id=249689,
which is a different problem.
Comment 14 Vitezslav Stejskal 2009-09-08 12:47:50 UTC
*** Issue 169366 has been marked as a duplicate of this issue. ***
Comment 15 gtg 2009-10-07 06:28:19 UTC
Build: NetBeans IDE Dev (Build 200910010513)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Linux, 2.6.27.29-0.1-default, amd64

User Comments: 

Maximum slowness yet reported was 58062 ms, average is 11345
Comment 16 gtg 2009-10-07 06:28:24 UTC
Created attachment 88961 [details]
nps snapshot
Comment 17 gtg 2009-10-07 07:23:20 UTC
Build: NetBeans IDE Dev (Build 200910061401)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Linux, 2.6.27.29-0.1-default, amd64

User Comments: 

Maximum slowness yet reported was 58062 ms, average is 11664
Comment 18 gtg 2009-10-07 07:23:24 UTC
Created attachment 88963 [details]
nps snapshot
Comment 19 gtg 2009-10-07 07:49:22 UTC
Build: NetBeans IDE Dev (Build 200910061401)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Linux, 2.6.27.29-0.1-default, amd64

User Comments: 

Maximum slowness yet reported was 63404 ms, average is 12896
Comment 20 gtg 2009-10-07 07:49:29 UTC
Created attachment 88966 [details]
nps snapshot
Comment 21 Quality Engineering 2009-11-01 10:56:41 UTC
Integrated into 'main-golden', will be available in build *200910310201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/165b1e9915ac
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #169864 - do not save PP on results change