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 63910 - Memory leak of conversations opened and left
Summary: Memory leak of conversations opened and left
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: collab (show other bugs)
Version: 5.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2005-09-08 15:29 UTC by Antonin Nebuzelsky
Modified: 2005-09-14 15:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
OptimizeIt screenshot (83.51 KB, image/png)
2005-09-08 15:29 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2005-09-08 15:29:19 UTC
When you leave an open conversation, it disappears completely from the UI (not
listed under Conversations node anymore), but there are tons of various
org.netbeans.modules.collab.* instances left on heap. See the attached
OptimizeIt screenshot.

The leak may be more complex than just one leaking instance keeping the others,
because looking at some of the objects in detail I saw some of them listening in
various listener chains.
Comment 1 Antonin Nebuzelsky 2005-09-08 15:29:47 UTC
Created attachment 24635 [details]
OptimizeIt screenshot
Comment 2 Antonin Nebuzelsky 2005-09-12 14:43:11 UTC
The size of the leak is quite large, especially if you share files through the
conversation.

First opened conversation with a particular contact leaked ~1.2MB, subsequent
opened conversations leaked ~300kB. After I shared a small project through the
conversation (with 2 files in it, which I then opened in the remote IDE) the
leak raised to ~3MB.

This should be fixed to Beta -> P1.
Comment 3 Petr Nejedly 2005-09-12 15:51:56 UTC
Working on it.
Comment 4 Petr Nejedly 2005-09-14 15:35:16 UTC
I found several places that caused this leak.
Most of them is fixed now, but there seems to be a remaining leak in the service
library. Now only the first conversation is leaked through
XMPPConferenceService/XMPPConference, all the subsequent conversations are freed
correctly. I'll file a separate issue for service library.

collab/filesharing/src/org/netbeans/modules/collab/channel/filesharing/FilesharingCollablet.java,v1.3
collab/ui/src/org/netbeans/modules/collab/ui/ParticipantNode.java,v1.2
collab/ui/src/org/netbeans/modules/collab/ui/switcher/ViewSwitcherItemList.java,v1.2
collab/ui/manifest.mf,v1.4
AU:
  filesharing v1.0.2
  collab-UI v1.0.3

Comment 5 Petr Nejedly 2005-09-14 15:37:36 UTC
The service library issue is: 64357