Issue Details (XML | Word | Printable)

Key: OPENJPA-71
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Roger Keays
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenJPA

Caching primitive array types consumes excessive memory

Created: 31/Oct/06 01:06 AM   Updated: 09/Mar/07 11:11 AM
Return to search
Component/s: datacache
Affects Version/s: 0.9.0, 0.9.6
Fix Version/s: 0.9.7

Time Tracking:
Not Specified

Resolution Date: 08/Mar/07 09:34 AM


 Description  « Hide
As reported on the mailing list: http://www.nabble.com/cached-byte---consumes-excessive-memory-tf2543098.html , in org.apache.openjpa.AbstractPCData#toData() an ArrayList is used to cache all types of arrays, including arrays of primitives. This can use excessively large amounts of memory because of the wrappers required for each element in the array. In one test case, a 7MB byte[] consumed 127MB when converted to a cached ArrayList.

AbstractPCData needs to be fixed to handle simple arrays.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order