p.s. In case it isn't obvious, the memory blowup is due to creating 7 million Byte wrapper objects to store in the List -- one for each byte in the array.
AbstractPCData needs to be modified to special-case primitive arrays
to just copy the array and cache it is an opaque value, rather than
using a List where each element is a potentially separately-cached
instance. Roger, I'd encourage you to file a JIRA issue for this
problem.
- Re: cached byte[] consumes excessive memory Roger Keays
- Re: cached byte[] consumes excessive memory Abe White