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 105667 - NbSwingWorker madness
Summary: NbSwingWorker madness
Status: VERIFIED DUPLICATE of bug 100077
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: J Bachorik
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2007-06-04 23:21 UTC by _ tboudreau
Modified: 2007-09-13 08:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (106.38 KB, text/plain)
2007-06-04 23:22 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2007-06-04 23:21:40 UTC
NetBeans started to be stuck between 126 and 128Mb of heap and the UI became
very unresponsive.  The attached thread dump, with 49 NbSwingWorker threads
might have something to do with it.  I took this thread dump during shutdown
(which took several minutes after the UI was closed);  during that time other
apps on my machine were considerably slowed down.

The problem became noticable after I installed contrib/whichproject,
contrib/linetools and contrib/semicolon, though I don't know if that was the
trigger for something.
Comment 1 _ tboudreau 2007-06-04 23:22:03 UTC
Created attachment 43217 [details]
Thread dump
Comment 2 J Bachorik 2007-06-05 07:35:17 UTC
The reason behind this is that the Retouche infrastructure blocks any incoming
calls for indeterminately long time. All those NBSwingWorkers should have been
finished in few milliseconds.
Anyway, I'll put a restriction on the number of active threads - this will avoid
creating excessive number of new threads but sometimes can cause the UI become
unresponsive till the Retouche infrastructure allows our code to make a query.
Comment 3 _ tboudreau 2007-06-05 08:35:19 UTC
Sounds like you need to move as much of that work on a background thread as
possible - which you're already doing;  any UI which depends on work on a
background thread should show some sort of "please wait" status, but certainly
shouldn't be blocking the AWT thread.
Comment 4 J Bachorik 2007-06-05 09:15:30 UTC
Actually, this seems to be a duplicate of the issue #100077
Next time, plz, attach also the NB and Profiler build numbers.

*** This issue has been marked as a duplicate of 10077 ***
Comment 5 Petr Nejedly 2007-06-05 09:41:46 UTC
Tim, what really causes your problem is most probably this:
http://www.netbeans.org/issues/show_bug.cgi?id=105234
Comment 6 _ tboudreau 2007-06-07 07:20:08 UTC
> *** This issue has been marked as a duplicate of 10077 ***

I can't find anything in issue 10077 that even looks related to this issue.  Is
this a joke?

Petr N's analysis seems like it might be on target.  But I have no idea how an
issue filed in March, 2001 about a dialog appearing on startup could have
anything to do with this.
Comment 7 _ tboudreau 2007-06-07 07:21:25 UTC
I think you meant issue 100077, not 10077.
Comment 8 _ tboudreau 2007-06-07 07:22:10 UTC
Setting history straight

*** This issue has been marked as a duplicate of 100077 ***
Comment 9 Alexander Kouznetsov 2007-09-13 08:49:10 UTC
Verified duplicate