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 199776 - 10s - too many filechangelistener add and remove from mimesupport
Summary: 10s - too many filechangelistener add and remove from mimesupport
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.0
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-06-30 08:53 UTC by Egor Ushakov
Modified: 2011-09-19 13:53 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 179638


Attachments
nps snapshot (27.49 KB, application/nps)
2011-06-30 08:54 UTC, Egor Ushakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Ushakov 2011-06-30 08:53:55 UTC
This issue was reported manually by gorrus.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 20110630-7999b6bf4bf5)
VM: Java HotSpot(TM) Client VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: SunOS
Maximum slowness yet reported was 22639 ms, average is 16811
Comment 1 Egor Ushakov 2011-06-30 08:54:00 UTC
Created attachment 109162 [details]
nps snapshot
Comment 2 Egor Ushakov 2011-06-30 08:57:25 UTC
This bug appeared after a fix of the bug 199497, now we limit the number of active (unprocessed) requests to FAM to 100 and block if more comes. It leads to block of different threads calling Watcher.register, mostly coming from findMIMEType
Comment 3 Jaroslav Tulach 2011-07-14 11:51:17 UTC
ergonomics#a53404f089fb
Comment 4 Quality Engineering 2011-07-17 13:59:37 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/a53404f089fb
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #199776: 10s - too many filechangelistener add and remove from mimesupport
Don't use listeners when invalidating caches in MIMESupport
Comment 5 Egor Ushakov 2011-09-19 13:07:17 UTC
wait, fix for the bug 199497 was integrated into patch1!
So we absolutely need the fix for this bug in patch2.
Please nominate for patch 2.
Comment 6 Egor Ushakov 2011-09-19 13:19:01 UTC
I may be wrong: if MIMESupport was changed to use listeners after 7.0.1 release then we do not need the fix in the patch. Need to check.
Comment 7 Egor Ushakov 2011-09-19 13:53:47 UTC
fix is not needed in patch, sorry for inconvenience