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 64357 - Memory leak: XMPPConference
Summary: Memory leak: XMPPConference
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: collab (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Rahul Shah
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2005-09-14 15:37 UTC by Petr Nejedly
Modified: 2005-10-25 14:36 UTC (History)
1 user (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 2005-09-14 15:37:00 UTC
If you create and leave several conversations using NB collaboration support,
(some of) their associated XMPPConference instance will remain in the
XMPPConferenceService's map.
See the following reference chain:
org.netbeans.modules.collab.ui.CollabExplorerPanel.DEFAULT_INSTANCE->
org.netbeans.modules.collab.ui.CollabExplorerPanel@5ee6a6->
org.netbeans.modules.collab.ui.RootNode@db8155->
org.netbeans.modules.collab.ui.SessionsNodeChildren@16a13d5->
java.util.ArrayList@18abda9->
[Ljava.lang.Object;@587fce->
org.netbeans.modules.collab.provider.im.IMCollabSession@cdc74->
org.netbeans.lib.collab.xmpp.XMPPConferenceService@104a6c->
java.util.Hashtable@37472e->
[Ljava.util.Hashtable$Entry;@59e229->
java.util.Hashtable$Entry@1cf4d0e->
org.netbeans.lib.collab.xmpp.XMPPConference@fae764

Causes the last part of issue 63910
Comment 1 Rahul Shah 2005-09-19 14:07:48 UTC
Is Conference.leave() method called everytime you close the conversation? 
XMPPConference.leave would remove the entries from the hashtable. I found one 
case where if Conference.close() was called instead of leave then the entry was 
not being removed from the hashtable.
Comment 2 Rahul Shah 2005-10-25 14:36:33 UTC
Fixed the case as described in earlier comment.