Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314568 - OutOfMemory Error after having cycled numerous Transient Database Connection Profiles
Summary: OutOfMemory Error after having cycled numerous Transient Database Connection ...
Status: RESOLVED FIXED
Alias: None
Product: Data Tools
Classification: Tools
Component: Connection Mgt Framework (show other bugs)
Version: 1.7.2   Edit
Hardware: PC Windows Server 2003
: P3 major (vote)
Target Milestone: 1.8   Edit
Assignee: Linda Chan CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 16:20 EDT by Linda Chan CLA
Modified: 2010-05-26 16:40 EDT (History)
0 users

See Also:
bfitzpat: review+


Attachments
Patch (1.12 KB, patch)
2010-05-26 16:22 EDT, Linda Chan CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Linda Chan CLA 2010-05-26 16:20:26 EDT
When doing multiple (a few hundred) runs of using transient database connection profiles to connect for use with the SQM parser, the process gets OutOfMemoryError.
When a transient profile is done and deleted from the connection profile manager, some weak references are still kept, and associated memory are not garbage collected.  

The attached patch calls #dispose immediately when deleting a transient profile, so all its managed connections kept in mFactoryIDToManagedConnection are released immediately.
Comment 1 Linda Chan CLA 2010-05-26 16:22:02 EDT
Created attachment 170095 [details]
Patch
Comment 2 Linda Chan CLA 2010-05-26 16:34:05 EDT
Committed patch.  Tagged with v201005270426.

Fitz, this is just adding a call to #dispose.  Let me know if you see any issue with the patch.  Thanks.
Comment 3 Brian Fitzpatrick CLA 2010-05-26 16:40:33 EDT
Patch looks pretty straightforward to me. :)