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

Bug 330388

Summary: Memory consumption becomes linearly when many persistent units with same persistent classes
Product: z_Archived Reporter: WENPIN <wenpin>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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