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 173491 - AWT thread blocked for 33356 ms.
Summary: AWT thread blocked for 33356 ms.
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Skrivanek
URL: http://statistics.netbeans.org/except...
Keywords: PERFORMANCE
: 177385 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-01 13:56 UTC by Jesse Glick
Modified: 2011-04-04 07:09 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 159373


Attachments
nps snapshot (8.67 KB, bin/nps)
2009-10-01 13:57 UTC, Jesse Glick
Details
nps snapshot (35.67 KB, bin/nps)
2009-10-07 14:42 UTC, Oleg Khokhlov
Details
nps snapshot (10.57 KB, bin/nps)
2009-10-09 19:26 UTC, jmichelberger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-10-01 13:56:56 UTC
This issue was originally marked as duplicate of issue 171716, 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 090929)
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:
jglick: Clicked on a Hudson build.


Maximum slowness yet reported was 33356 ms, average is 33356
Comment 1 Jesse Glick 2009-10-01 13:57:00 UTC
Created attachment 88670 [details]
nps snapshot
Comment 2 t_h 2009-10-05 13:19:30 UTC
The problem is caused by suspicious HudsonJobImpl.equals(), which calls synchronized methods. If HudsonJobImpl is used
as key in InstanceNodeChildren, HudsonJobImpl.equals() should behave as for immutable object (therefore no
synchronization would be necessary).
Comment 3 Exceptions Reporter 2009-10-06 11:59:50 UTC
This issue already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=159373
Comment 4 Jesse Glick 2009-10-06 22:41:27 UTC
Hudson-related problem fixed: cdev #80938cfaa348

271898 seems to be due to PhpVisibilityQuery being slow and thus blocking FolderChildren.createNodes. 273402 and 273481
are issues in ejbjarproject. 273452 is a Maven issue. Reassigning to ejbjarproject since that is responsible for the
most duplicates. Ideally the exception reporter would understand that a blocked Mutex is due to time spent in another
thread.
Comment 5 David Konecny 2009-10-06 22:56:22 UTC
Andrey, please have a look at EJB related problems. Thanks.
Comment 6 Oleg Khokhlov 2009-10-07 14:41:59 UTC
Build: NetBeans IDE Dev (Build 200910070250)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows XP, 5.1, x86

User Comments: 
expanding 'Enterprise Beans' folder (27 items) in ejb 
Maximum slowness yet reported was 33356 ms, average is 12203
Comment 7 Oleg Khokhlov 2009-10-07 14:42:30 UTC
Created attachment 89014 [details]
nps snapshot
Comment 8 Exceptions Reporter 2009-10-07 14:43:06 UTC
This issue already has 6 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=159373
Comment 9 Andrey Yamkovoy 2009-10-09 10:26:53 UTC
Fixed EJB part: 17e3d72667e2

Reassign to PHP as next problem area.
Comment 10 Tomas Mysik 2009-10-09 10:37:16 UTC
PhpVisibilityQuery was already removed (see issue #170308).

Reassigning to Maven (see comment from Jesse).
Comment 11 jmichelberger 2009-10-09 19:26:02 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-4010-on-090930)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows XP, 5.1, x86

User Comments: 

Maximum slowness yet reported was 33356 ms, average is 10931
Comment 12 jmichelberger 2009-10-09 19:26:07 UTC
Created attachment 89224 [details]
nps snapshot
Comment 13 Exceptions Reporter 2009-10-09 19:26:13 UTC
This issue already has 7 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=159373
Comment 14 Quality Engineering 2009-10-09 23:10:31 UTC
Integrated into 'main-golden', will be available in build *200910091401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/80938cfaa348
User: Jesse Glick <jglick@netbeans.org>
Log: #173491: EQ blocked waiting for unnecessary synchronization.
Comment 15 Quality Engineering 2009-10-14 11:07:28 UTC
Integrated into 'main-golden', will be available in build *200910140201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/17e3d72667e2
User: Andrey Yamkovoy <kaktus@netbeans.org>
Log: Fix for #173491 - create EJB nodes in hash before invoking setKeys() which blocks mutex
Comment 16 Exceptions Reporter 2009-11-13 09:01:39 UTC
This issue already has 23 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=159373
Comment 17 Exceptions Reporter 2009-11-13 09:11:37 UTC
This issue already has 24 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=159373
Comment 18 David Simonek 2009-11-18 09:26:36 UTC
Maven issue was fixed in 171716. Last reports contain some huge waitings when DataObjects are copied, reassigning.
Comment 19 Jiri Skrivanek 2009-11-19 06:03:00 UTC
From snapshot 288565 with DataObjects is not obvious what it is waiting for. Snapshots from dev builds are reassigned to proper component/subcomponent:

292784, 301348 - projects/Ant Freeform
295382 - connecteddeveloper/Bugzilla

Other reports are from 6.8Beta or older builds, so I expect it is fixed in all relevant places as described in comments.
Comment 20 pribyl 2009-11-27 08:24:45 UTC
Product Version: NetBeans IDE 6.8 RC1 (Build 200911252200)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

Verified
Comment 21 Martin Fousek 2011-04-04 07:09:59 UTC
*** Bug 177385 has been marked as a duplicate of this bug. ***