Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 314568

Summary: OutOfMemory Error after having cycled numerous Transient Database Connection Profiles
Product: [Tools] Data Tools Reporter: Linda Chan <lchan>
Component: Connection Mgt FrameworkAssignee: Linda Chan <lchan>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 Flags: bfitzpat: review+
Version: 1.7.2   
Target Milestone: 1.8   
Hardware: PC   
OS: Windows Server 2003   
Whiteboard:
Attachments:
Description Flags
Patch none

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. :)