Skip to main content



      Home
Home » Archived » XML Schema Definition (XSD) » Running out of memory..
Running out of memory.. [message #55814] Thu, 02 December 2004 18:18 Go to next message
Eclipse UserFriend
Originally posted by: Abhinav.Vohra.siebel.com

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);
Re: Running out of memory.. [message #55868 is a reply to message #55814] Fri, 03 December 2004 05:17 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Abhinav,

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);
>
>
>
>
>
Re: Running out of memory.. [message #592999 is a reply to message #55814] Fri, 03 December 2004 05:17 Go to previous message
Eclipse UserFriend
Abhinav,

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);
>
>
>
>
>
Previous Topic:XML <-> ASN.1 : Developer response?
Next Topic:choice or sequence min/max occurs
Goto Forum:
  


Current Time: Mon Apr 28 02:58:24 EDT 2025

Powered by FUDForum. Page generated in 0.24869 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top