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 145464 - [65cat] IDE is freezing for more than 30 seconds.
Summary: [65cat] IDE is freezing for more than 30 seconds.
Status: VERIFIED DUPLICATE of bug 145546
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker with 1 vote (vote)
Assignee: Vadiraj Deshpande
URL:
Keywords: PERFORMANCE
: 144187 145686 (view as bug list)
Depends on: 145546
Blocks:
  Show dependency tree
 
Reported: 2008-08-28 16:54 UTC by dafreels
Modified: 2008-09-01 21:02 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump during right click pause (45.98 KB, text/plain)
2008-08-28 16:58 UTC, dafreels
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dafreels 2008-08-28 16:54:08 UTC
[ BUILD # : 200808280201 ]
[ JDK VERSION : 1.6.0_04 ]

The IDE will freeze for more than 30 seconds periodically. Usually
right clicking on a project starts the freeze.
Comment 1 dafreels 2008-08-28 16:58:03 UTC
Created attachment 68554 [details]
Thread dump during right click pause
Comment 2 dafreels 2008-08-28 16:59:40 UTC
I have attached a thread dump plus the last three warnings that occurred prior to the freeze. I know at least the last
warning appeared when I right clicked my project.
Comment 3 Marian Mirilovic 2008-08-28 17:09:04 UTC
dafreels, 
yo you are using PHP. Am I right ?
Comment 4 dafreels 2008-08-28 17:11:20 UTC
I am not using PHP. I have 14 projects, 7 java w/existing sources and 7 web application w/existing sources. 
I right clicked on the largest (~40,000 files) of my web projects when the IDE froze.
Comment 5 Tomas Mysik 2008-08-28 23:35:33 UTC
Jirko, Radku, could you please look at the thread dump? Seems to be related to FS. Thanks.
Comment 6 Tomas Mysik 2008-08-29 10:42:24 UTC
After the discussion with Radek I think that this could be problem of Hibernate support? Please evaluate and reassign 
if I'm wrong. Thanks.
Comment 7 dafreels 2008-08-29 12:48:47 UTC
None of my projects use hibernate. iBatis is used in 1 of my projects, but this problem occurs for all of them.
Comment 8 Vadiraj Deshpande 2008-08-29 17:09:13 UTC
This issue is due to repeated queries of file MIMEType for project files. Optimizing the call...
Comment 9 Jayashri Visvanathan 2008-08-29 20:06:33 UTC
According to the issue, the reporter is not using Hibernate at all.  Isn't it possible to avoid this operation for non
hibernate projects ? 
Comment 10 David Konecny 2008-08-31 21:51:13 UTC
re. "Isn't it possible to avoid this operation for non hibernate projects" - web project iterates over all frameworks to
detect which ones are enabled in given project (ie. aWebFrameworkProvider.isInWebModule()). This should be done only in
handful of places (eg. when opening project properties, etc.) but because of issue 145546 it happens frequently
(whenever project's isActionEnabled is called). I suggest you try to optimize your code if you can because
aWebFrameworkProvider.isInWebModule() should be quick but fixing issue 145546 should most probably resolve this issue.
Comment 11 Petr Jiricka 2008-09-01 09:53:20 UTC
*** Issue 145686 has been marked as a duplicate of this issue. ***
Comment 12 David Konecny 2008-09-01 10:09:44 UTC
I believe the core of performance regression was fixed as issue 145546. Could you please retest and reopen this issue if
it is still not satisfactory? Thanks. (first fixed in trunk Build #3641, Sep 1, 2008 6:28:08 AM)

*** This issue has been marked as a duplicate of 145546 ***
Comment 13 Vadiraj Deshpande 2008-09-01 10:19:01 UTC
The Hibernate module calls have also been optimized :
http://hg.netbeans.org/main?cmd=changeset;node=451699140653
Comment 14 dafreels 2008-09-01 13:29:18 UTC
I have pulled build 20080901093718 (http://deadlock.netbeans.org/hudson/job/trunk/3642/) and verified that the
performance is excellent.
Comment 15 David Konecny 2008-09-01 21:02:05 UTC
*** Issue 144187 has been marked as a duplicate of this issue. ***