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 50454 - Memory leak and infinite loop in MasterFS
Summary: Memory leak and infinite loop in MasterFS
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: rmatous
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-10-14 23:17 UTC by Petr Nejedly
Modified: 2008-12-22 18:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nejedly 2004-10-14 23:17:40 UTC
After analysing OOME log from Dafe, I've found 
thousands of MasterFOs listening on each
AbstractFO from one folder (13 files in folder,
>7000 delegates for each).

Delegate creates a WeakListener but attaches the
original strong listener to delegate instead
(Delegate.set(FileObject fo))

The leak got revealed thanks to probably even
bigger problem: Dafe just deleted a folder on his
FS (through files view IIRC) and the IDE went into
a loop refreshing files. This loop probably
created all the redundant MasterFO instances.
Dafe can easily reproduce it.
Comment 1 rmatous 2004-10-15 08:03:42 UTC
/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/Delegate.java
new revision: 1.14; previous revision: 1.13
Comment 2 Zdenek Konecny 2005-08-05 14:44:28 UTC
Verified