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 172482 - [68cat] AWT thread blocked for 4683 ms.
Summary: [68cat] AWT thread blocked for 4683 ms.
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 blocker with 1 vote (vote)
Assignee: issues@javaee
URL: http://statistics.netbeans.org/except...
Keywords:
: 177974 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-17 14:13 UTC by neilg
Modified: 2010-04-07 13:54 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 158199


Attachments
nps snapshot (256.00 KB, application/nps)
2009-12-04 14:21 UTC, bht
Details
nps snapshot (256.00 KB, application/nps)
2009-12-04 14:22 UTC, bht
Details
nps snapshot (256.00 KB, application/nps)
2009-12-04 14:23 UTC, bht
Details
nps snapshot (256.00 KB, application/nps)
2009-12-04 14:24 UTC, bht
Details
nps snapshot (256.00 KB, application/nps)
2009-12-04 14:36 UTC, bht
Details
nps snapshot (256.00 KB, application/nps)
2009-12-04 14:37 UTC, bht
Details
nps snapshot (256.00 KB, application/nps)
2009-12-04 14:38 UTC, bht
Details
nps snapshot (256.00 KB, application/nps)
2009-12-04 14:39 UTC, bht
Details
nps snapshot (256.00 KB, application/nps)
2009-12-26 03:14 UTC, sridher
Details
nps snapshot (256.00 KB, application/nps)
2010-01-11 07:44 UTC, sebsmail
Details

Note You need to log in before you can comment on or make changes to this bug.
Description neilg 2009-09-17 14:13:52 UTC
Build: NetBeans IDE Dev (Build 200909151512)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-15-generic, amd64
User comments: right click on maven webapp
Maximum slowness yet reported was 7691 ms, average is 5816
Comment 1 Petr Jiricka 2009-10-02 16:06:04 UTC
This is coming from org.netbeans.modules.maven.j2ee.J2eeRecoPrivTemplates.getRecommendedTypes, and was introduced by fix
for issue 170537.

This is calling WebModule.getJ2eeProfile, which is slow. The question is - is this method supposed to be fast? Or should
it not be called in AWT? That's a question for Petr H.

Comment 2 Exceptions Reporter 2009-10-04 18:22:41 UTC
This issue already has 9 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=158199
Comment 3 neilg 2009-11-13 05:47:45 UTC
I run into this problem many times every day. Whenever I want to run or debug a maven webapp, close a webapp, update from subversion I have to wait (sometimes for 30s or more). I don't submit all of the slowness reports because if I submit the report I have to wait again when I right click on the project.

It would be great if a fix for this could make it into 6.8.
Comment 4 neilg 2009-11-16 07:11:37 UTC
Added 68cat prefix as this is affecting my use of NB68 dev in the netcat program.
Comment 5 Martin Schovanek 2009-12-02 13:13:13 UTC
Petre H. can you please evaluate?
Comment 6 Petr Hejl 2009-12-02 13:41:08 UTC
At least some reports (http://statistics.netbeans.org/exceptions/exception.do?id=293782) are triggered by WebActionProvider.isActionEnabled which may parse web.xml (IO in EDT).

I'll evaluate couple of others.
Comment 7 Petr Hejl 2009-12-02 13:53:28 UTC
Reports coming from maven are caused by xml parsing in method WebModuleImpl.getJ2eeProfile(). This is not really new method the whole body is the same as it was in previous release (method getJ2eePlatformVersion()). So I'm not sure how this method was originally designed - whether intended to be fast or not.

I would suppose this (or similar method) is called at many places so these should be implemented to not to do file parsing.

I'll try to find out some details on methods usage.
Comment 8 Petr Jiricka 2009-12-03 01:24:49 UTC
Cc'ing Denis, I believe he was looking into similar reports before.
Comment 9 pawan.kumar 2009-12-03 01:35:59 UTC
6.8 RC1 is not having this problem now. But now opening project takes forever and causes netbeans to hang.

OS:2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 i686 i386 GNU/Linux
JDK: java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)

Thanks,
Pawan Kumar
Comment 10 Denis Anisimov 2009-12-03 02:06:19 UTC
>This is calling WebModule.getJ2eeProfile
it delegates call to ProjectWebModule.getJ2eeProfile() .
I don't see in its implementation any time consuming problems. It 
just retrieves property without any additional computation/initialization.

>At least some reports triggered by WebActionProvider.isActionEnabled which may >parse web.xml
I see some pointers to isActionEnabled() for some actions but it seems
these actions are related to project xml configuration files.
Because I don't see any mention of various Web models which should be used for
accessing to info like web.xml.

We have had problems with performance when Web models was used ( I already 
mentioned these models ). There are number of decisions was done for avoiding 
these  problems. I don't see any mentions of usages such models ( I just red the 
bug description without deep reports details ).
If you find stack trace with j2ee ( web ) model usages which could relate
to this bug please write it here. I will help to analyze them respectively 
performance.
Comment 11 bht 2009-12-04 14:21:02 UTC
Created attachment 92147 [details]
nps snapshot

Was right clicking on the maven project as reported in https://netbeans.org/bugzilla/show_bug.cgi?id=177974

No response to the right click at all.

I am still trying to figure out what is going on.
Comment 12 bht 2009-12-04 14:22:02 UTC
Created attachment 92148 [details]
nps snapshot

Was right clicking on the maven project as reported in https://netbeans.org/bugzilla/show_bug.cgi?id=177974

No response to the right click at all.

I am still trying to figure out what is going on.
Comment 13 bht 2009-12-04 14:23:02 UTC
Created attachment 92149 [details]
nps snapshot

Was right clicking on the maven project as reported in https://netbeans.org/bugzilla/show_bug.cgi?id=177974

No response to the right click at all.

I am still trying to figure out what is going on.
Comment 14 bht 2009-12-04 14:24:03 UTC
Created attachment 92150 [details]
nps snapshot

Was right clicking on the maven project as reported in https://netbeans.org/bugzilla/show_bug.cgi?id=177974

No response to the right click at all.

I am still trying to figure out what is going on.
Comment 15 bht 2009-12-04 14:36:03 UTC
Created attachment 92153 [details]
nps snapshot

Just right clicking on a project as reported in https://netbeans.org/bugzilla/show_bug.cgi?id=177974.

The context menu did not pop up for even 30 seconds befor this. Repeatable, no other tasks.
Comment 16 bht 2009-12-04 14:37:02 UTC
Created attachment 92154 [details]
nps snapshot

Just right clicking on a project as reported in https://netbeans.org/bugzilla/show_bug.cgi?id=177974.

The context menu did not pop up for even 30 seconds befor this. Repeatable, no other tasks.
Comment 17 bht 2009-12-04 14:38:03 UTC
Created attachment 92155 [details]
nps snapshot

Just right clicking on a project as reported in https://netbeans.org/bugzilla/show_bug.cgi?id=177974.

The context menu did not pop up for even 30 seconds befor this. Repeatable, no other tasks.
Comment 18 bht 2009-12-04 14:39:03 UTC
Created attachment 92156 [details]
nps snapshot

Just right clicking on a project as reported in https://netbeans.org/bugzilla/show_bug.cgi?id=177974.

The context menu did not pop up for even 30 seconds befor this. Repeatable, no other tasks.
Comment 19 sridher 2009-12-26 03:14:41 UTC
Created attachment 92927 [details]
nps snapshot
Comment 20 sebsmail 2010-01-11 07:44:08 UTC
Created attachment 93183 [details]
nps snapshot

After activating the virtual private network, which means that netbeans has no longer connection to the internet, I push the right mouse button on a maven web projekt, to open the menue. Then the ide hangs for more than one minute until timeout occurs.
Comment 21 Antonin Nebuzelsky 2010-01-14 06:58:21 UTC
Changing the default owner to issues@javaee.
Comment 22 Milos Kleint 2010-02-05 03:18:44 UTC
*** Bug 177974 has been marked as a duplicate of this bug. ***
Comment 23 bht 2010-04-01 16:02:37 UTC
Are there any chances of getting this resolved?
Comment 24 Petr Jiricka 2010-04-02 14:25:10 UTC
Looking at the duplicate slowness reports, all of them are coming from NB 6.8 or pre-6.8 builds - there is no report from 6.9 dev builds. Can anyone confirm whether this is still happening in 6.9 dev? Could this be fixed in 6.9 builds? If this is still reproducible, then it would be great to have slowness reports from the current builds.
Comment 25 Petr Jiricka 2010-04-07 13:53:49 UTC
Not able to reproduce now -> FIXED.