All
Whenever I load an XSD that imports more than 2 or 3 other xsds the memory
spikes. In addition, it seems like this memory isnt being freed up. Does the
XSD library store loaded XSDResource statically?

The following is a snippet of code I'm using to load my XSD. I provide the
resourceset with a custom URIConverter to handle imports.

Your models are loaded into your local resource set and should last
only/just as long.

Abhinav Vohra wrote:

>All
>Whenever I load an XSD that imports more than 2 or 3 other xsds the memory
>spikes. In addition, it seems like this memory isnt being freed up. Does the
>XSD library store loaded XSDResource statically?
>
>
>The following is a snippet of code I'm using to load my XSD. I provide the
>resourceset with a custom URIConverter to handle imports.
>
>ResourceSet resourceSet = XSDSchemaImpl.createResourceSet();
>resourceSet.setURIConverter(resolver);
>
>Resource res = resourceSet.getResource(uri, true);
>
>
>
>
>

Your models are loaded into your local resource set and should last
only/just as long.

Abhinav Vohra wrote:

>All
>Whenever I load an XSD that imports more than 2 or 3 other xsds the memory
>spikes. In addition, it seems like this memory isnt being freed up. Does the
>XSD library store loaded XSDResource statically?
>
>
>The following is a snippet of code I'm using to load my XSD. I provide the
>resourceset with a custom URIConverter to handle imports.
>
>ResourceSet resourceSet = XSDSchemaImpl.createResourceSet();
>resourceSet.setURIConverter(resolver);
>
>Resource res = resourceSet.getResource(uri, true);
>
>
>
>
>