Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330388 - Memory consumption becomes linearly when many persistent units with same persistent classes
Summary: Memory consumption becomes linearly when many persistent units with same pers...
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-16 13:22 EST by WENPIN CLA
Modified: 2022-06-09 10:20 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WENPIN CLA 2010-11-16 13:22:52 EST
Build Identifier: 

Memory consumption becomes linearly when many persistent units with same persistent classes.

When we have same persistent classesin many persistent units with different datasources in persistent.xml,the memory consumption becomes higher & higher.

Is there any approach to share/minimize the memory usage?

Reproducible: Always

Steps to Reproduce:
1. a number of complicated persistent classes (10 classes)
2. 10 persistent units with same persistent classes.
3. In comparison with 1 PU,the memory usage becomes linearly to the PU number.
Comment 1 Tom Ware CLA 2010-11-16 13:34:42 EST
Closing.   Only a small amount of the information in a persistence unit is the metadata for particular classes.  The rest is the data structures required to maintain the state of the persistence unit.  You will find that as you use the persistence units, the size of each will grow with the number of managed entities.

If you are having a memory consumption issue with your application, a better place to get support would be through the mailing lists or forum.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:20:35 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink