Community
Participate
Working Groups
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.
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.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink