openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey (JIRA)" <>
Subject [jira] Resolved: (OPENJPA-71) Caching primitive array types consumes excessive memory
Date Thu, 08 Mar 2007 09:35:24 GMT


Patrick Linskey resolved OPENJPA-71.

       Resolution: Fixed
    Fix Version/s:     (was: 0.9.7)

> Caching primitive array types consumes excessive memory
> -------------------------------------------------------
>                 Key: OPENJPA-71
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: datacache
>            Reporter: Roger Keays
> As reported on the mailing list:
, 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.

View raw message