Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Running out of memory..
Running out of memory.. [message #55814] Thu, 02 December 2004 23: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 10: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 10:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
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);
>
>
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:XML <-> ASN.1 : Developer response?
Next Topic:choice or sequence min/max occurs
Goto Forum:
  


Current Time: Sat Apr 20 00:21:15 GMT 2024

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

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

Back to the top