Do you mean that you pass a file to the *Un*marshaller?
Given a file, JAXB would use a SAX parser which just reads the XML text and
creates the object set as defined by the Java classes (normally compiled
from the schema). This doesn't use any caching. I'd guess that a 250MB XML
file might well require heap space for the resulting Java object hierarchy
that's in the same order of magnitude.
How big is your heap? How much of that is used for a smaller XML file that
you can unmarshal?
Wolfgang
On Fri, Nov 28, 2008 at 7:43 AM, Naresh Tallapelli <
naresh.tallapelli_at_gmail.com> wrote:
> Hi All,
>
> Iam using jaxb version 2.1.8. When i pass a huge file 250MB for JAXB
> Marshaller it is throwing "out of memory error". So i want to know how the
> JAXB is implementing Cache. Whether it is using Memory cache (Map) or Disk
> level cache (Ehcache). If JAXB is using Ehcache, can we configure it to
> suit our needs. Can anyboly please provide a solution to my problem with out
> increasing the Java Heap size.
>
> Any help is much appreciated.
>
> Thank you,
> Naresh.
>
>
>