[
https://issues.apache.org/jira/browse/OPENJPA-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12479276
]
Patrick Linskey commented on OPENJPA-71:
----------------------------------------
Resolved. I changed AbstractPCData to not marshal / unmarshal arrays via Lists,
but I did not do any memory footprint measurement.
> Caching primitive array types consumes excessive memory
> -------------------------------------------------------
>
> Key: OPENJPA-71
> URL: https://issues.apache.org/jira/browse/OPENJPA-71
> Project: OpenJPA
> Issue Type: Bug
> Components: datacache
> Reporter: Roger Keays
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.